Scan to PDF (corner correction + OCR)

Turn a quick phone photo of a document or a book page into something that looks like it came out of a real scanner. Upload a photo and the tool automatically finds the four corners of the page, then flattens the shape into a straight, rectangular image even if it was shot at an angle or from the side. Pick a Black & White document mode to make faded or unevenly lit text crisp and readable, or Sharper to boost contrast without going fully monochrome. When you're happy with the result, optionally turn on OCR (text recognition) to bake an invisible, selectable and searchable text layer into the final PDF. Every step — corner detection, perspective warping, filtering and OCR — runs locally in your browser. Nothing is ever uploaded to a server, which matters if you're scanning IDs, contracts, receipts or personal notes.

Loading the tool...

When to use it

Photograph a contract or receipt into a PDF

Take the photo and four green dots land on the page corners automatically. If they sit right, press “Apply to this page”, then “Create PDF” to save.

Make unevenly lit paper readable

Choose “B&W document” under Enhance to clean up yellowed paper and shadows. Keep “Original” when color matters, or use “Sharper” to boost contrast only.

Combine several pages in the right order

Add many photos at once and they stack in “Pages (in PDF order)”. Use ◀ ▶ to reorder, rotate sideways ones and “Remove” the ones you do not need.

Search the text of your scan

Turn on “Add text recognition (OCR) so text can be selected/searched” and press “Create PDF”. Pick the document language under “OCR language” (Korean + English, English, Korean, Spanish, Portuguese, French or German); only that language’s recognition data is downloaded, the first time.

How to use it

  1. Tap 'Take a photo' or 'Choose files' to add one or several document/book page photos at once.
  2. Four green corner handles appear automatically on each photo. If the detected position is off, drag the dots onto the real page corners and press 'Apply to this page' to flatten it.
  3. Pick Original, Black & White document, or Sharper for the look you want, then reorder, rotate or delete pages in the page list below.
  4. Choose a page size (A4, Letter, or Original size) and image quality, turn on OCR if you want selectable text, then press 'Create PDF' to save it instantly.

How it works

Page corners are found by our own lightweight edge detector, the page is perspective-corrected on a canvas, and pdf-lib builds the PDF; optional OCR adds a searchable text layer with Tesseract.js, whose language data and font are downloaded from this site the first time. Your photos and the PDF never leave your device. Your file is processed in this browser and is not uploaded. To check this yourself, watch the browser's DevTools Network tab while you use the tool (step-by-step guide).

Open-source used here

Everything runs client-side, with no server round trip. Corner (edge) detection does not rely on a third-party computer-vision library; instead it is a small custom JavaScript routine that converts the photo to grayscale, measures edge strength with a Sobel-style gradient, and then searches in four diagonal directions for the farthest strong-edge pixel to approximate each corner. This works well whenever the document has reasonable contrast against its background, and you can always fix it by dragging the handles. The perspective warp that flattens the quadrilateral into a straight rectangle is likewise a small amount of custom math (a homography solved with Gaussian elimination and bilinear-sampled rasterization) rather than an external library.

⚠️ Copyright note: scanning an entire copyrighted work such as a book, magazine or newspaper and sharing or uploading the result can infringe copyright, even when the scan itself is technically easy to make. Please use this tool for personal, non-distributed purposes — contracts, receipts, homework, handwritten notes, forms you need to submit — rather than producing and distributing full scans of books you don't own the rights to.

More tips

When you'd want this

  • Submitting paperwork: photograph a contract, application or consent form, straighten it, and hand over a clean PDF instead of a crooked photo.
  • Personal scans of books or course material: save a few pages you need for study without carrying the physical book around.
  • Organizing receipts: flatten a crumpled receipt into something presentable for an expense report.
  • Searchable archives: add OCR so you can later search the text inside the PDF with Ctrl+F instead of scrolling through images.

Tips for taking a scan-friendly photo

Automatic corner detection works best when there's clear contrast between the document and whatever is behind it. Put a light sheet of paper on a dark desk, or a dark book cover on a light background, rather than photographing white paper on a white table. Light the page from the side or above instead of from directly behind the camera, so shadows don't fall across the text. Hold the phone as parallel to the page as possible and shoot from directly above; the less perspective distortion you start with, the more natural the automatic flattening will look. Leave a little room around the edges so all four corners are fully visible in the frame — if a corner gets cropped out of the photo itself, no amount of software correction can bring it back.

When automatic corner detection gets it wrong

If the background is close in color to the page, or another object overlaps the document, the automatic detection can grab the wrong points. When that happens, drag the four green dots with your finger or mouse until they sit exactly on the document's actual corners. You can press 'Auto-detect corners' again to retry, or 'Reset to full image' to start over from scratch. Whichever way you adjust them, remember to press 'Apply to this page' afterward — that's the step that actually performs the perspective warp using your corrected corners.

Black & White document mode vs. Sharper: which to pick

The 'Black & White document' filter shines when paper has yellowed with age or the lighting across the page is uneven, since it analyzes brightness locally rather than using one global threshold, which separates text from background cleanly and produces that crisp, photocopier-like look while also shrinking the file size considerably. 'Sharper' keeps the original colors but boosts contrast a little, which is the better choice when you need to preserve a stamp, a signature in colored ink, or a highlighted section. For pages that are genuinely photographic — a diagram, a photo pasted into a notebook — leaving the filter on 'Original' usually looks the most natural.

Frequently asked questions

What if the automatic corner detection gets it wrong?

You'll see four green dots on the photo. If the detected position is off, just drag each dot onto the real corner of the page, then press 'Apply to this page' to warp it correctly.

Is it okay to scan a whole book?

It's technically possible, but scanning an entire copyrighted book and sharing or uploading it can infringe copyright. Please keep full scans for personal use or study only, and avoid distributing them.

When should I use the Black & White document mode?

Use it when the paper looks yellowed or the lighting is uneven; it makes text crisper and keeps the file smaller. Keep Original for pages where color actually matters, like photos.

What does turning on OCR actually change?

It adds an invisible text layer inside the PDF so you can select and copy text, or search it with Ctrl+F. The scanned image itself stays exactly as it looked; small recognition mistakes never change the picture. To add text to a scanned PDF you already have, use the OCR PDF tool.

Can I scan several pages at once?

Yes. Add multiple photos and they appear as a page list you can drag to reorder, or move with the ◀ ▶ buttons. They are combined into one PDF in that order.

Are my photos uploaded to a server?

No. Corner detection, perspective correction and OCR all run inside the browser you're using right now. Your photos and the resulting PDF never leave your device.

Can I preview the finished file before downloading again?

Yes. When the job finishes you get a 3-page preview, a redownload button, and buttons to jump straight into another PDF tool.

The finished PDF is too large. What can I do?

Lower “Image quality” before creating it, or use “B&W document” if you do not need color, which usually shrinks the file. An existing file can go through the PDF compress tool, but do not use the strongest level on a PDF with OCR text because it removes the text layer.

How should I photograph the page?

Use good light and a plain surface that differs in color from the paper, and shoot straight down from above. Shadows and glare are reduced, so "Auto-detect corners" works better. If a corner is off, drag the 4 green dots and click "Apply to this page".

Can I reorder or remove pages after shooting?

Yes. In "Pages (in PDF order)" use "Move earlier", "Rotate left" and "Remove". Check the order, then click "Create PDF".

Tools that go well with this one