Document Scanner

This document scanner turns phone photos of receipts, invoices, forms and book pages into a clean, flat PDF. Drop one photo or a whole folder and it finds each page's edges automatically, either with the instant built-in detector or with OpenCV.js, which you can download once for tougher photos, then straightens the perspective so a page shot at an angle comes out as a proper rectangle. If it picks the wrong edge, drag the four corners onto the page yourself and watch the result update beside it. Choose enhanced color, grayscale or a shadow-free black and white that makes text crisp, rotate any page, reorder them, and export everything as one multi-page PDF on A4 or Letter, or as a ZIP of images for your other PDF tools. It is free, works entirely in your browser, and your documents are never uploaded, which matters for bank statements, IDs and contracts. For best results shoot the whole page on a darker surface without glare.

PDF page sizes

SizeMillimetersInchesPDF points
A4210 × 2978.27 × 11.69595 × 842
US Letter216 × 2798.5 × 11612 × 792
Same as photo——Photo size at 150 dpi

When to use it

  1. Turn a month of receipt photos into one PDF for expense claims.
  2. Scan a signed contract with your phone and send it as a clean PDF.
  3. Straighten photos of whiteboard notes or book pages shot at an angle.
  4. Make shadowed, uneven photos of forms readable in black and white.
  5. Prepare scans for OCR, merging or compression with other PDF tools.

How to Use

  1. Drop photos of the pages, or a folder.
  2. Check each page's corners and drag them if needed.
  3. Choose the look, rotate or reorder pages.
  4. Click Create PDF, or download the cleaned images as a ZIP.

Features

  1. Built-in engine or downloadable OpenCV.js
  2. Automatic page edge detection
  3. Draggable corner handles with live preview
  4. Perspective correction
  5. Enhanced color, grayscale and black & white
  6. Rotate and reorder pages
  7. A4, US Letter or same-size PDF
  8. Adjustable JPEG quality
  9. Images as ZIP
  10. 100% client-side

FAQs

How do I scan a document to PDF without a scanner?

Photograph each page, drop the photos here, check the detected edges, then click Create PDF. The pages are flattened, cleaned up and combined in order.

What if the edges are detected wrongly?

Drag the four corner handles onto the corners of the page. The preview beside it updates as you move them.

Which look should I choose?

Black & white for text pages, as it removes shadows and paper tint; Enhanced color for receipts with stamps, photos or colored forms.

Are my documents uploaded?

No. Everything, including edge detection and PDF creation, runs in your browser.

Should I use the built-in engine or OpenCV.js?

The built-in engine is instant and works well for a page on a darker surface. OpenCV.js is a one-time download of about 13 MB that finds page outlines from edges, so it copes better with light desks and busy backgrounds. You can remove it any time with Clear downloaded models.

Can I scan HEIC photos from an iPhone?

Only in Safari, which can decode HEIC. In other browsers, export the photos as JPG first.

Technical Details

Each photo is decoded with its camera orientation applied. A 400-pixel grayscale copy is thresholded with Otsu's method, the largest bright connected region is taken as the page, and its four corners are the points that maximise x + y, x − y and their opposites; if no page-like region covers at least 15% of the frame, the whole photo is used and the corners can be dragged by hand. The page is flattened with a perspective transform: a homography is solved from the four corners to a rectangle sized from the page's longer opposite edges, and every output pixel is sampled from the photo with bilinear interpolation. Enhanced color stretches each channel's 1st–99th percentiles to full range; black and white uses an adaptive local-mean threshold from an integral image, which removes shadows. Visitors can instead choose the OpenCV.js engine: the official OpenCV 5.0 build is downloaded once on request from jsDelivr, verified against a pinned SHA-384 fingerprint before it runs, cached in the browser and removable from the Downloaded models panel. With it, pages are found by Gaussian blur, Canny edges, dilation and contour search for the largest convex four-sided outline (falling back to the minimum-area rectangle), and flattened with cv.warpPerspective using bicubic interpolation. Pages are JPEG-encoded and placed on A4, US Letter or same-size PDF pages with pdf-lib.

PDF Tools

PDF Tools

  • PDF Redaction Tool (True Removal)
  • PDF N-Up Imposition
  • Label and Business Card Sheet Maker
  • PDF Editor
  • PDF to Excel
  • HTML to PDF
  • Word to PDF
  • Password Protect PDF