Article
The Browser PDF Toolkit: Clean Up, Lay Out, and Structure
Most PDF tasks fall into three buckets: making a document readable, arranging its pages, and editing its metadata. Our suite of browser tools handles every step locally inside your tab. Files are opened, modified, and saved entirely on your device, keeping sensitive payslips, legal agreements, and personal records completely private.
The Browser PDF Toolkit: Clean Up, Lay Out, and Structure
Clean up and correct a scan
A scanned page may need rotation, straightening or a different appearance before you share it. The rotation tool turns pages in 90-degree steps. Deskew attempts to straighten a slight scan angle. Grayscale renders each page into pixels, converts that image to shades of grey and rebuilds an image-based PDF; it does not simply delete colour channels from the existing document structure. Selectable text and interactive elements are therefore not retained in the same form, and a smaller file is not guaranteed. The repair tool tries to load and re-save document structures that pdf-lib can parse. It cannot reconstruct missing bytes or promise to recover every damaged file. Work on copies, inspect every resulting page and keep the originals before combining these operations.
| Feature | Client-Side Browser (WASM / JS) | Cloud PDF Web Portals |
|---|---|---|
| Data Transfer / Upload | 0 Bytes (F12 Network Verified) | 100% PDF File Uploaded via HTTP POST |
| Engine & Enforced Caps | pdf-lib + WASM workers (20-200 MB; 300 MB merge) | Remote Server Queue (Often 10-50 MB Free) |
| Where your files are processed | In your browser: the file never leaves your device | On their servers: your file is uploaded |
| File retention & verification | Zero upload, verifiable in your browser Network tab (F12) | Uploaded and stored temporarily on remote servers |
| Account | Never required | Required for some features |
| Works offline | After the required downloads, while the browser retains them | No |

Lay out the pages
Once a document is readable, you may need to reshape how pages sit on the sheet. Crop margins trims excess whitespace, resize standardizes mixed page dimensions such as US Letter to A4, and the page organizer deletes, reorders, or extracts individual sheets. For print workflows, n-up places multiple pages per sheet, booklet imposition arranges signatures for folded printing, and alternate-mix interleaves front and back batches from a single-sided scanner. Blank-page removal drops empty scan backs automatically, while visual PDF comparison highlights layout differences between two revisions. Vector layout transforms preserve selectable text without rasterizing born-digital content.
| Feature | Desktop 64-bit Tab | Mobile Safari (iOS) | Android Chrome (32/64-bit) |
|---|---|---|---|
| Heap / RAM Limit | 2 GB - 4 GB WebAssembly Memory | 250 MB - 350 MB Total Tab Memory | 512 MB - 1 GB Web Worker Memory |
| Enforced / Safe PDF Cap | 20-200 MB per PDF (300 MB merge) | ~40 MB - 100 MB Safe Cap | ~80 MB - 100 MB Safe Cap |
| Canvas Max Dimensions | 16384 x 16384 px | 4096 x 4096 px (16.7 Mpx total) | 8192 x 8192 px |
| Memory Exhaustion Remedy | Chunk pages / Downscale DPI | Render 150 DPI viewport tiles | Split PDF / Lower render DPI |
Metadata and structure
The last bucket is the data wrapped around the pages. The metadata tool reads and rewrites the title, author, subject, and keyword fields, and lets you clear them before you share a document, which is a small but real privacy step. The bookmarks tool builds the clickable outline that a PDF reader shows in its side panel, so a long report becomes navigable. The HTML-to-PDF tool goes the other way and turns pasted markup into a PDF, with a clear caveat: it renders the result as an image of the page, so the output is not selectable text. When you actually need the words out of a PDF, two different paths exist. If the file was created digitally, the PDF to Text tool reads its embedded text directly and exactly. If the file is a scan, there is no text to read, so you need optical character recognition, which guesses the letters from the picture and can make mistakes. Knowing which case you are in saves a lot of confusion.
Engineering and building-design teams often deal with multi-section technical PDFs, such as exported reports from lift traffic software, where adding clickable bookmarks and stripping internal draft metadata makes deliverables easier to review before sharing with clients.
PDF internal structure and XREF tables
A PDF file is not a linear document; it is a database of discrete objects (dictionaries, arrays, streams, and numeric values) connected by a Cross-Reference (XREF) table at the end of the file. The XREF table maps each object ID to its exact byte offset. Some desktop editors save changes as an incremental update: a new XREF section appended to the file that overrides only the modified objects, leaving the original bytes in place underneath. Browser-based tools built on pdf-lib work differently: they parse the whole document into an in-memory object graph, apply the requested change (for instance rewriting a page's Rotate entry from 0 to 90), then reserialize the entire file from scratch as a single fresh PDF. That full rewrite means the whole document has to fit in memory while the tool runs, which is why each tool enforces a maximum input size; it never uploads any of it to a server.

Stream compression and how PDF repair works
Page content in a PDF (text drawing commands, vector paths, raster images) lives inside Stream objects, which are almost always compressed with FlateDecode (zlib). When a PDF is corrupted, the damage is typically either a malformed XREF table or a truncated compressed stream. Desktop binary PDF recovery engines such as qpdf or Poppler handle severe damage by bypassing the broken XREF table and performing a linear scan of the raw byte stream for obj and endobj markers, extracting objects and rebuilding a fresh XREF table. Our browser PDF Repair tool works at a higher structural level: it loads the file leniently with pdf-lib and copies recoverable pages into a fresh document, re-serializing a clean cross-reference structure. If the corruption falls inside a Flate-compressed stream itself, the data in that specific object is not recoverable; structural faults can often be repaired, but damaged page streams may still leave blank pages or missing images.
Tools in this article
- Deskew scanned pagesStraighten skewed PDFs and scanned images automatically or manually by 0.1°, clean black borders, enhance contrast, and target specific pages.
- PDF to GrayscaleConvert a PDF to grayscale or pure black and white with custom DPI, contrast boost, compression, and selective page ranges.
- Repair PDFRebuild damaged PDF structures, fix broken XRef tables, clone valid pages, and sanitize embedded JavaScript locally.
- Rotate PDF pagesRotate individual or all PDF pages by 90°, 180° or 270° and auto-align portrait or landscape.
- Crop PDF pagesCrop PDF pages visually with drag handles, aspect ratio presets, single or all-page scope, and mirrored facing margins in your browser.
- Resize PDF pagesResize PDF pages to A3, A4, A5, Letter, Legal, custom dimensions (mm, cm, in), or a percentage scale with auto orientation.
- PDF N-up (pages per sheet)Place 2, 4, 6, 8, 9 or 16 PDF pages on an A4 or Letter sheet with smart orientation, reading order, repeat mode and page borders.
- Alternate & Mix two PDFsInterleave pages from two PDFs to combine separately scanned front and back pages or custom page blocks.
- PDF metadata remover / editorInspect, remove or edit a PDF's Info dictionary, timestamps, custom keys and XMP metadata stream directly in your browser.
- Add & Edit PDF BookmarksCreate, import, or edit multi-level PDF bookmarks and table of contents outlines with page offset support.
- HTML to PDFConvert pasted HTML or .html files into A4 or Letter PDFs with custom margins, viewport width, and live preview.
- Organize PDF pagesReorder, rotate, duplicate, insert blank pages, or remove PDF pages using visual thumbnails, then export your reorganized PDF.
- Add page numbersNumber PDF pages by choosing the number format, size and position in the document.
- Add PDF Header & FooterAdd PDF header and footer text with {page}, {total} and {date} tokens on the left, center or right.
- PDF Booklet (Saddle-Stitch Imposition)Impose PDF pages into folded 2-up saddle-stitch booklet signatures for two-sided printing on A4, A3, Letter, or Tabloid sheets with LTR and RTL support.
- Remove Blank Pages from PDFAutomatically detect and remove empty or near-white pages from scanned duplex PDFs using ITU-R BT.601 luminance thresholds and edge margin cropping.
- PDF White Margin CropperAutomatically detect content bounds and crop white margins from PDF pages.
- PDF Poster & Tile SplitterSplit large-format PDFs into printable A4, A3, or Letter poster tiles with overlap and cut marks.
- Compare PDF pages visuallyCompare two PDFs locally with manual page matching, visual pixel diff, split slider, text diff, excluded regions, and a raster PDF report.
- Extract images from PDFExtract embedded photos and figures from PDF documents as PNG, JPG, or WebP with size filtering and page selection.
Frequently asked questions
Do these PDF tools upload my file to a server?
No. Each of these tools opens, edits, and saves the PDF inside your browser tab using JavaScript and WebAssembly. The file is read from your disk into the page and the result is written straight back to a download, so nothing is sent across the network. You can confirm this by opening your browser network panel while you use a tool, or by disconnecting from the internet after the page has loaded and watching the tool still work.
Can the repair tool fix any broken PDF?
Not any file. The repair tool reparses the document and writes a fresh, well-formed copy, which fixes broken cross-reference tables and many structural faults that stop a PDF from opening. It cannot invent data that is genuinely missing or undo strong encryption. Treat it as a quick first attempt: if it recovers your file, you are done, and if it does not, you have lost nothing and can look for the original.