ScreenshotNeo

BlogHow-to

How to Convert an Image to A4 Size Online

Resize any image to A4 online, choose fit or crop, set 300 DPI, and export a print-ready file without stretching the subject.

By the ScreenshotNeo team1 October 20266 min read

Short answer: Use an A4 image converter, choose portrait or landscape, select Fit within Page to preserve the entire image or Fill Page to cover the sheet with possible edge cropping, set 300 DPI for high-quality print, inspect the preview, and download the result.

A4 measures 210 × 297 mm (8.27 × 11.69 in). At 300 DPI, the portrait target is 2480 × 3508 pixels; landscape is 3508 × 2480 pixels.

Convert an image to A4 online

  1. Open an A4 converter such as Cloudinary’s Photo to A4 Size tool.
  2. Upload your JPG or PNG. Check the service’s current file limits and privacy policy first.
  3. Choose Portrait or Landscape.
  4. Choose Fit within Page when every part of the image must remain visible. Expect borders if the aspect ratios differ.
  5. Choose Fill Page when the image must reach every edge. Inspect the crop around faces, text, and logos.
  6. Set 300 DPI when the source has enough pixels for a sharp print.
  7. Preview the crop, borders, and positioning. Reposition the crop or crop manually first if an important subject is near an edge.
  8. Download the JPG or PNG. Print at 100% scale on A4 paper, or place it in an A4 PDF or document with your intended margins.

A4 dimensions and pixel calculations

Output Physical size Pixel target
A4 portrait 210 × 297 mm (8.27 × 11.69 in) 2480 × 3508 px at 300 DPI
A4 landscape 297 × 210 mm (11.69 × 8.27 in) 3508 × 2480 px at 300 DPI
A4 at another DPI 8.27 × 11.69 in inches × DPI, rounded to whole pixels

The calculation is pixels = inches × DPI. Adobe describes the relationship between physical size, resolution, and pixel dimensions in its Image Size and Resolution documentation.

A4 portrait has an aspect ratio of approximately 1:1.414. A source with a different ratio must either receive padding (Fit) or lose content at the edges (Fill).

Fit, fill, and manual cropping

Fit within Page

Fit scales the complete source image until it fits inside the A4 rectangle. The unused area becomes a border, which can be white, black, or another background color. Use it for documents, scanned artwork, and photographs where no edge may be lost.

Fill Page

Fill scales the image until the entire A4 rectangle is covered, then crops the excess. Use it for full-bleed posters and photos when edge loss is acceptable. Check the preview at all four edges before exporting.

Manual crop first

Manual cropping is useful when a face, caption, or logo must stay in a particular position. Crop to the A4 ratio first, then resize to the chosen DPI target. Keep the aspect-ratio lock enabled so people and objects are not stretched.

Resolution: why 300 DPI does not restore detail

Adobe states that screen and web images commonly use 72–96 PPI, while print images require 300 PPI for best quality. A 300 DPI export is a print target, not a detail generator. Resampling adds or removes image data and can soften or pixelate a small source.

  • For a sharp A4 print at 300 DPI, start near 2480 × 3508 px (portrait).
  • If the source is smaller, avoid aggressive enlargement when text or fine lines matter.
  • Keep the original file and export a separate A4 copy.
  • Use PNG for sharp graphics and transparency; use high-quality JPG for photographs.

Convert locally in your browser with HTML and JavaScript

Local processing keeps the file on your device. The example below loads an image, fits it inside an A4 canvas, and downloads a PNG at 300 DPI dimensions.

<!doctype html>
<meta charset="utf-8">
<title>A4 image converter</title>
<input id="file" type="file" accept="image/*">
<select id="mode"><option value="fit">Fit</option><option value="fill">Fill</option></select>
<button id="save" disabled>Download A4 PNG</button>
<script>
const W = 2480, H = 3508; // A4 portrait at 300 DPI
let image;
file.onchange = () => {
  const selected = file.files[0];
  if (!selected) return;
  image = new Image();
  image.onload = () => save.disabled = false;
  image.src = URL.createObjectURL(selected);
};
save.onclick = () => {
  const canvas = document.createElement('canvas');
  canvas.width = W; canvas.height = H;
  const ctx = canvas.getContext('2d');
  ctx.fillStyle = '#fff'; ctx.fillRect(0, 0, W, H);
  const scale = mode.value === 'fill'
    ? Math.max(W / image.width, H / image.height)
    : Math.min(W / image.width, H / image.height);
  const dw = image.width * scale, dh = image.height * scale;
  ctx.drawImage(image, (W - dw) / 2, (H - dh) / 2, dw, dh);
  const link = document.createElement('a');
  link.download = 'a4-300dpi.png';
  link.href = canvas.toDataURL('image/png');
  link.click();
};
</script>

For landscape output, swap the canvas dimensions to 3508 × 2480. This code controls pixels and composition; print software may still need the file’s physical-resolution metadata set to 300 DPI.

Advanced desktop workflow

Photoshop’s Image Size dialog lets you enter width, height, units, resolution, aspect-ratio locking, and resampling options. Use it when you need a deliberate crop, a specific border color, or controlled enlargement before export. Keep the proportions locked and preview at 100% before saving.

Privacy and file handling

Browser converters use different processing models. Nouplo says its resize operation runs entirely in the browser and files are not uploaded or stored; Cloudinary presents an upload-based workflow. Read the current policy for the service you choose before submitting identity documents, confidential scans, or client work.

Or skip the browser setup

If the image is on a webpage and you need a clean capture before placing it on an A4 page, ScreenshotNeo can return a PNG, JPEG, WebP, or PDF from one GET request. It is a webpage screenshot API, so it does not resize a local upload; use the A4 workflow above for an existing file.

Cookie banners, newsletter popups, and chat widgets are removed before the shot. Bot checks, blank pages, failed loads, timeouts, and cache hits are not billed. An MCP server lets AI agents take screenshots, and 1,000 screenshots per month are free with no card; paid plans start at $5 for 3,000 shots. See the ScreenshotNeo API documentation.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

Create a free ScreenshotNeo account with 1,000 screenshots per month and no card.

Troubleshooting

Problem Cause Fix
White borders appear The source and A4 ratios differ and Fit preserves the whole image. Use Fill, crop manually first, or choose a deliberate border color.
Important content is cut off Fill cropped the long edges. Switch to Fit or reposition the crop before export.
The print looks soft The original lacks enough pixels; 300 DPI cannot create missing detail. Use a larger source, reduce the print size, or accept softer output.
People look stretched Width and height were changed independently. Lock the aspect ratio and use proportional scaling.
Output prints smaller than A4 The viewer is using “Fit to page” or the file lacks physical-size metadata. Print at 100% and set the document size to 210 × 297 mm with the intended margins.
Upload is rejected File type or size exceeds the converter’s current limits. Convert to JPG or PNG, reduce file size locally, or use another tool after checking its policy.
Private material feels unsafe to upload The service processes files on its servers. Use a local browser or desktop workflow and verify deletion terms.

Performance, reliability, and cost considerations

  • Large files: Downscale only after keeping an untouched original; very large images can exhaust browser memory.
  • Preview first: A quick crop preview catches edge loss before a high-resolution export.
  • Format choice: PNG preserves hard edges and transparency; JPG is usually smaller for photos.
  • Printing: Confirm your printer supports borderless A4 if you selected Fill for edge-to-edge output.
  • Service costs: Check current limits, pricing, retention, and privacy terms for any online converter. ScreenshotNeo’s free tier includes 1,000 shots monthly with no card; paid plans begin at $5 for 3,000 shots.

FAQ

What size is A4 in pixels?

At 300 DPI, A4 portrait is 2480 × 3508 pixels and landscape is 3508 × 2480 pixels.

How do I fit an image to A4 without cropping?

Choose Fit within Page. It preserves the complete image and adds borders where the aspect ratios do not match.

Should I choose portrait or landscape?

Choose the orientation that matches the subject’s composition. Portrait is taller; landscape is wider.

Can a low-resolution image become sharp by setting 300 DPI?

No. DPI changes the print target; it does not recreate detail that was absent from the source.

Is an online converter safe for confidential images?

It depends on the service. Prefer local processing for sensitive files, or read the service’s current upload, retention, and deletion terms.