How to Scan a Document to PDF With Just Your Phone
A dedicated flatbed scanner used to be the only way to turn a paper document into a clean, rectangular digital file. A photo taken at an angle, under uneven light, with the desk visible around the edges, never quite looked the same. Modern browser-based scanning closes that gap โ using your phone camera as the input, and computer vision to do the rest.
What actually makes a photo look like a scan
Two things separate a "photo of a document" from a "scan." First, edge detection: the tool analyzes the image, finds the four corners of the page against the background, and lets you fine-tune them if it does not guess perfectly. Second, perspective correction: once the corners are known, the image is mathematically warped so the page fills a perfect rectangle โ the same correction a flatbed scanner gets for free by pressing the page flat against glass.
CocoPDF Scanner runs both steps locally in your browser using WebAssembly computer-vision code. Nothing is uploaded to a server while you are capturing and adjusting โ your photos only leave your device once you tap "Convert to PDF" at the end.
Choosing the right filter
After capture, you can apply one of three filters:
- Color โ keeps the original colors. Best for documents where color carries information: diagrams, forms with colored stamps, ID cards.
- Grayscale โ removes color but keeps shading. A good middle ground for photos or documents with shaded illustrations.
- Black & White โ a high-contrast, pure black-on-white result. This is what most people mean by "scanned document" โ it looks the cleanest for plain text and compresses to the smallest file size.
For a typical contract, receipt, or printed form, Black & White gives the crispest, most professional-looking result. Save Color for anything where the color itself matters.
Getting a clean capture
- Place the document on a flat, contrasting surface โ a dark desk under a white page, for example โ so edge detection has a clear boundary to find.
- Use even lighting and avoid casting your own shadow over the page.
- Hold the camera as close to directly overhead as possible; steep angles ask perspective correction to do more work and can soften text near the edges.
- If the auto-detected corners are slightly off, drag them into place manually before continuing โ a few seconds here avoids a skewed result.
Multi-page documents
You are not limited to one page per PDF. After saving a page, tap "Add page" to capture the next one. Pages appear in a review grid where you can reorder them, delete any that came out badly, or re-shoot a page before finishing. Once every page looks right, "Convert to PDF" merges them into a single document.
Common uses
- Scanning receipts for an expense report instead of photographing a messy pile.
- Digitizing a signed contract or ID for a form submission that requires a PDF.
- Capturing handwritten notes or a whiteboard at the end of a meeting.
- Turning a printed article or textbook page into a searchable-ready PDF (pair it with the OCR tool afterward โ see the OCR guide for how it works).
To try it, open the Scan PDF tool on your phone or laptop, allow camera access, and capture your first page โ no app, no signup, and no watermark on the result.
Try it yourself
Everything in this article is free to use on CocoPDF โ no account needed.
๐ธ PDF ScannerRelated Guides
OCR Explained: How to Make Scanned PDFs Searchable
What OCR is, how it works, and why language selection matters for accurate text recognition.
How to Compress a PDF Without Losing Quality
Learn the difference between screen, ebook, printer, and prepress compression settings and when to use each.