Teknobench
Support

Document Scanner

Scan a paper document from a photo in your browser: drag the corners, remove shadows, straighten the page and download it as PNG, JPG or PDF.

How to scan a document from a photo

  1. Drop a photo of the sheet on the drop zone, or click it to choose the file. JPG, PNG and WebP work, and the photo is read in the browser, so it never leaves your device.
  2. Four round handles appear over the picture. Drag each one onto a corner of the sheet: Top-left corner, Top-right corner, Bottom-right corner and Bottom-left corner. Keep the corners of the paper, not the edges of the desk behind it.
  3. Pick a Filter. Document (shadows removed) is the usual choice for printed or handwritten pages. Black and white gives the sharpest text for archives and forms.
  4. Click Scan document. The page is straightened and the result appears below.
  5. Use Rotate 90° if the page is upside down or sideways. Each click turns it one quarter.
  6. Choose the Image format (PNG for text, JPG for smaller photos), then click Download image, or click Download PDF to get a one-page A4 file.

If you move a corner after scanning, the result is hidden, because it was made from the old corners. Click Scan document again.

Why the photo looks skewed

A photo taken at an angle makes a rectangle look like a trapezoid, and the text leans. The tool treats the four corners you mark as the four corners of a rectangle and finds the perspective transform that maps one onto the other. Every pixel of the output is looked up in the photo and blended with its neighbours, so the lines of the page come out straight and evenly spaced.

The size of the result follows the sheet itself. Each side is measured on the photo, the longer of two opposite sides sets the width or height, and the longest side is capped at 3,000 pixels. A photo of an A4 page therefore comes out in the proportions of the paper, not in the proportions of the camera frame.

Filters explained

  • Original colours keeps the picture as it is, only straightened. Use it for a colour document, a receipt with a logo or a page with photos.
  • Grayscale turns colours into shades of grey. The file is smaller than a colour scan and text stays readable.
  • Document (shadows removed) estimates the brightness of the paper around each point, then divides the picture by it. A shadow from your hand or from the room is a slow change in brightness, so it is removed, and the paper turns white. The levels are then stretched so that the ink is dark.
  • Black and white applies the document filter and then splits every pixel into black or white, with the threshold chosen automatically from the page histogram (Otsu’s method). It gives the smallest files for text, but faint pencil and light stamps can disappear.

Exporting and privacy

Download image saves a PNG or a JPG at the size shown under Output size. JPG is lossy, so use PNG when you need the text to stay perfectly crisp. Download PDF puts the scan on one A4 page, landscape when the scan is wider than it is high, with a small margin. The PDF holds a JPG image of the scan.

Everything happens on your computer. The photo, the corners and the result are never uploaded, so this tool is suitable for contracts, identity papers and private letters. For several pages at once, scan them one by one and merge the PDFs with a PDF tool.

Tips for a good result

Light the page evenly, from the front, without the flash, which creates glare. Hold the phone parallel to the sheet when you can, and fill most of the frame with the paper. A dark background helps the corners to be found by eye. If a corner is hidden under a finger or a clip, move the handle to the place where the edge would be, using the arrow keys for fine steps.

Frequently asked questions

Why does the scan have a grey border or streaks?

A corner placed outside the paper makes the tool sample the picture beyond its edge, and the last row of pixels is repeated there. Move the handle back onto the sheet and scan again.

Can I scan several pages into one PDF?

Not in this tool. It creates a one-page PDF for each scan. Save each page as a PNG or a JPG, then join them with a PDF merge tool.

Which filter should I use for a receipt?

Try Black and white first, which makes thermal paper look clean and readable. If the numbers are faint, use Document (shadows removed) instead, because it keeps more grey detail.

Does the tool keep the photo after I close the page?

No. The photo is decoded in your browser’s memory and is discarded when you clear it or close the page. Nothing is sent to a server, and no account is needed.

Why is the result not exactly the size of the paper?

The output size is taken from the distances between your corners in the photo, so a photo taken at a shallow angle gives a slightly different ratio. Adjust the corners more precisely if the proportions matter, for example for a print at a given size.

Is the result an official scan for a bank or a court?

This tool gives a clean copy that is easy to read and print. Some institutions require a specific format, resolution or signature. Check their rules before you send the file.