Document Scanner

Turn a phone photo of a document into a clean, straightened scan: rotate, fix the perspective, flatten the background, boost contrast, and download it as a PDF, all in your browser.

runs locally on your browser. Your data never leaves your device.

Drag & drop a photo of your document

or

Common Use Cases

Turn a phone photo of a signed contract or form into a clean PDF to email or file
Straighten and clean up a photographed receipt for expense records
Digitize a printed handout or worksheet into a shareable, well-lit PDF
Convert a photo of an ID, certificate, or letter into a properly cropped, straightened scan

About Document Scanner

A photo of a document taken at an angle, on a patterned desk, under uneven lighting, never quite looks like a real scan: the page is skewed into a trapezoid, the background is visible around the edges, and the lighting makes parts of the page look gray or yellow instead of white. This tool fixes all of that directly in your browser: upload a photo, rotate it if it came out sideways, drag the four corner handles onto the actual edges of your document, and it straightens the perspective, cleans up the background lighting, sharpens the contrast, and lets you download the result as a PDF, the same kind of output you'd get from a dedicated scanning app, without installing one or uploading anything.

Perspective correction is the core of the tool. Because a photographed page is almost never perfectly parallel to the camera, its four corners rarely form a true rectangle in the image; they form some skewed quadrilateral. After you mark those four corners, the tool computes a projective transform that maps that quadrilateral back onto a straight rectangle, resampling every pixel of the output from the original photo. This is the same category of math used by professional scanning apps to "de-skew" a photographed page, run entirely as plain JavaScript against the pixels already sitting in your browser's memory.

Once the page is straightened, two more corrections happen automatically. Background cleanup estimates the photo's uneven lighting (the shadows and hotspots a phone camera almost always introduces) and divides it out, so a page that looked patchy or gray becomes an even, bright background. Contrast optimization then stretches the resulting brightness range so the page's whites and blacks use the full range instead of a washed-out middle band, the same idea as an "auto levels" adjustment. You can turn this enhancement off if you'd rather keep the corrected-but-unprocessed colors of the original photo.

Finally, choose Color to keep the page's natural colors (good for photos, colored diagrams, or documents where color carries meaning) or Black & White to convert it to a crisp, high-contrast grayscale scan (good for plain text documents, where it also tends to produce a smaller, cleaner-looking result). The finished page downloads as a single-page PDF sized to match the corrected document's proportions, ready to attach, print, or file away. Nothing about your photo (the image data, the corners you drag, or the finished scan) is ever uploaded, logged, or sent anywhere; every step runs locally using the Canvas API already built into your browser.

Frequently Asked Questions

Is my photo uploaded anywhere while it's being scanned?
No. The photo is decoded directly in your browser as soon as you select it, and every step (perspective correction, background cleanup, contrast adjustment, and the final PDF creation) runs entirely on your device using the Canvas API and plain JavaScript. Nothing is uploaded, transmitted, logged, or stored anywhere, even if your internet connection drops after the page has loaded.
How do I set the document corners correctly?
After you upload a photo, four draggable handles appear near the edges of the image. Drag each one onto the actual corner of your document (top-left, top-right, bottom-right, bottom-left); they don't need to be pixel-perfect, just reasonably close to the page's real corners. The tool uses those four points to work out how the page is skewed and straightens it accordingly, so more accurate corners produce a straighter, better-cropped result.
My photo came out sideways or upside down. Can I fix that?
Yes. The two rotate buttons above the corner editor turn the photo a quarter-turn clockwise or counter-clockwise, as many times as you need. Rotating resets the corner handles to their default position for the new orientation, since the old corners no longer line up, so re-adjust them afterward before scanning.
What's the difference between Color and Black & White mode?
Color keeps the document's natural colors after straightening and cleaning up the background, the right choice for photos, colored diagrams, or forms where color is meaningful. Black & White converts the page to a high-contrast grayscale scan, which is the classic 'scanned document' look, tends to produce a cleaner result for plain text pages, and is what most people expect when they think of a scanned page.
What does the background cleanup and contrast optimization actually do?
Background cleanup estimates the uneven lighting in your photo (shadows near the edges, a bright hotspot from a lamp or flash) and divides it back out of the image, so the page's background becomes an even white instead of patchy gray. Contrast optimization then stretches the resulting brightness values so they use the full range from black to white instead of a dull, washed-out middle band. Both are on by default and can be turned off with a single toggle if you'd prefer the perspective-corrected image with its original, unprocessed lighting and colors.
Can I adjust the corners again after scanning?
Yes. The corner handles, scan mode, and enhancement toggle all stay right where you left them after you click Scan Document, so you can drag a corner, flip between Color and Black & White, or toggle enhancement off, then click Scan Document again to regenerate the result as many times as you like before downloading.
What size and format is the downloaded file?
The result downloads as a single-page PDF, sized to match the straightened document's own proportions rather than a fixed page size, so a portrait ID card and a landscape certificate each produce a PDF shaped like the original document instead of being awkwardly padded onto a letter-sized page.