Skip to content
DevToolKit

PDF Fix Page Size

Normalize mixed page sizes in a PDF to a single standard format. Scale-to-fit or pad with margins for A4, Letter, Legal, A3, Tabloid, and A5. Runs locally in your browser.

pdf

Drop your PDF here, or click to browse

Files are processed entirely in your browser — never uploaded

Processed locally
Was this tool helpful?

How to Use

Normalize all pages in a PDF to a single consistent size in four steps:

  1. Upload your PDF — Drag and drop a PDF file or click the dropzone to browse. The tool scans the document locally and reports each page's dimensions, highlighting whether the file contains mixed page sizes. No data leaves your browser.
  2. Choose a target size — Select the desired output size from the dropdown: A4, US Letter, Legal, A3, Tabloid, or A5. All pages in the output PDF will conform to this single size.
  3. Configure resize mode and orientation — Pick Scale-to-Fit to proportionally resize content so it fills the target page, or Pad to keep the original content size and add white margins. Set the orientation to Portrait, Landscape, or Auto (which preserves each page's original orientation).
  4. Process and download — Click "Fix Page Size" to normalize the document. The result summary shows how many pages were modified versus unchanged. Download the fixed PDF with a single click.

The entire operation runs in your browser using pdf-lib. Your PDF is never uploaded to any server, making this tool safe for confidential, legal, and corporate documents.

About This Tool

A PDF document can contain pages of different sizes within the same file. This happens frequently when merging documents from multiple sources — a report with A4 body pages and Letter-sized appendices, or a presentation where slides and handout pages coexist. Printers, binding services, and many PDF viewers expect uniform page dimensions. This tool resolves that mismatch by converting every page to a single target size without rasterizing content or degrading quality.

The PDF specification defines page dimensions through page boxes. The most important is the MediaBox, which sets the full extent of the page. Additional boxes — CropBox, BleedBox, TrimBox, and ArtBox — define subregions for cropping, bleed allowance, finished trim size, and meaningful content area respectively. Standard sizes like A4 correspond to a MediaBox of 595.28 x 841.89 points, while US Letter uses 612 x 792 points. One point equals 1/72 of an inch.

The Scale-to-Fit algorithm works by embedding each source page into a new target-sized page. For each page, the tool calculates a uniform scale factor as min(targetWidth / sourceWidth, targetHeight / sourceHeight). This ensures the content fills as much of the target page as possible while maintaining its original aspect ratio. The scaled content is centered both horizontally and vertically on the target page. A Letter-sized page (612 x 792 pt) scaled to A4 (595.28 x 841.89 pt) produces a scale factor of approximately 0.973, resulting in a small amount of extra vertical space that is distributed equally above and below the content.

The Pad mode takes a different approach. Content is drawn at its original size (scale factor = 1.0) and centered on the larger target page, creating uniform white margins around the content. This is ideal when preserving exact physical dimensions matters — for example, architectural drawings or technical diagrams where scale markings must remain accurate. If a source page happens to be larger than the target, the Pad algorithm automatically falls back to proportional scaling for that page, preventing content from being clipped.

The Auto orientation setting examines each page's aspect ratio individually. If a source page is landscape (width greater than height), the tool creates a landscape target page for that specific page. If the source is portrait, the target is portrait. This means a mixed-orientation document — common with scanned documents that include both portrait text pages and landscape spreadsheet pages — retains each page's natural reading direction while normalizing the absolute dimensions to the chosen paper size.

Under the hood, the tool uses pdf-lib's embedPdf() method to create Form XObject references to source pages. This technique preserves all vector content, embedded fonts, images, and interactive elements (links, bookmarks) without rasterization. Text in the output PDF remains fully searchable and selectable. Because pages are embedded as references rather than copied pixel by pixel, shared resources like fonts are not duplicated, keeping the output file size efficient. Pages that already match the target dimensions are copied directly using copyPages(), avoiding any unnecessary re-encoding.

Why Use This Tool

Standardizing page dimensions addresses real problems that occur throughout the document lifecycle:

  • Printing consistency — Commercial printers and office MFPs expect uniform page sizes. A mixed-size PDF often causes per-page scaling prompts, paper tray switching, or outright print failures. Normalizing to a single size before printing eliminates these issues and produces predictable output every time.
  • Merged document cleanup — Combining PDFs from different authors, regions, or software frequently produces files with A4, Letter, Legal, and custom-sized pages mixed together. Fixing page size after merging creates a polished, professional document with consistent margins and layout.
  • International format conversion — Converting between A4 (ISO standard, used in 95% of countries) and US Letter (used in the US and Canada) is one of the most common page size operations. This tool handles the conversion without distorting content or requiring manual per-page adjustment.
  • Binding and finishing — Perfect binding, spiral binding, and saddle-stitching all require uniform page dimensions. Mixed sizes cause misaligned edges, uneven trims, and wasted materials. Fixing page size is a prerequisite step before any professional finishing operation.
  • Digital publishing and archival — PDF/A compliance for long-term archival recommends consistent page dimensions within a document. E-readers, document management systems, and archival repositories handle uniform-size PDFs more reliably than mixed-size files.
  • Scanned document standardization — Scanners occasionally produce pages with slightly varying dimensions due to paper feed variance, deskew corrections, or resolution differences. Normalizing these small deviations creates a clean, uniform document from imperfect scan output.

Because this tool processes PDFs entirely within your browser, it is safe for documents containing personal information, financial data, legal filings, medical records, or any other sensitive content. No files are transmitted over the network. The source PDF is loaded into browser memory, processed using the pdf-lib JavaScript library, and the result is saved directly to your device. Related tools include PDF Page Dimensions for inspecting page sizes before fixing, PDF N-Up Page Layout for tiling multiple pages per sheet, PDF Compress for reducing file size after normalization, and PDF Split for separating pages before selective resizing.

FAQ

What does fixing page size do?
It converts all pages in a PDF to a single consistent size. Pages that are too large are scaled down to fit; pages that are too small are centered with white margins.
What is the difference between Scale and Pad modes?
Scale-to-Fit resizes content proportionally to fill the target page. Pad keeps the original content size and adds white space around it to reach the target dimensions.
Which paper sizes are supported?
A4, US Letter, Legal, A3, Tabloid, and A5. Each can be portrait, landscape, or auto (preserving each page's original orientation).
Does this affect text quality?
No. The tool uses pdf-lib embedPage which preserves vector text, fonts, and images without rasterization. Text remains searchable and crisp.
Is my PDF uploaded to a server?
No. All processing runs locally in your browser using pdf-lib. Your file never leaves your device.