DocViso
All guides

How to scan a passport or ID card so the text is actually readable

Glare, angles and colour loss are what ruin ID scans. Here is the sequence that keeps the MRZ, photo and microprint legible every time.

Nov 12, 20267 min readDocViso

Identity documents are the hardest thing most people ever scan, and almost every failed scan fails for one of three reasons: light bouncing off the laminate, the card being cropped to its edges, or the colour being flattened to black and white. Fix those three and the rest is easy.

Start with the light, not the app

Hold the document so the light comes from behind you, not from a lamp in front of you. Laminate is the enemy: a passport data page or a plastic ID card is effectively a mirror, and a light source in front of it throws a white band across the exact zone that holds the machine-readable text.

If you are shooting indoors, turn off the ceiling light and use daylight from a window. If the only option is a desk lamp, tilt the document 15–20 degrees and shoot slightly off-axis — you lose a little geometry and gain readable text.

Fill the frame, then add a margin

The common instinct is to crop tight to the card. Don't. Leave a centimetre of table around every edge. Automatic edge detection needs to see where the card ends to measure the corners; a card cropped by the photographer has nothing to measure against, and a slight keystone becomes an unrecoverable skew.

A modern scanner detects the corners, straightens the perspective and then trims to the real edge. That works on a full frame with margin. It cannot work on an already-cropped photo.

Shoot in colour, even if the document looks black and white

A passport has a weak background pattern, a citizenship certificate has a coloured seal, and a driving licence has a photograph. Converting to grayscale throws away the contrast that separates the watermark from the text, and OCR accuracy drops fastest exactly on the lowest-contrast fields — passport number, date of birth, and the machine-readable zone.

Set the app to colour for identity documents, then convert to black and white only if you need a smaller file for a form that asks for one.

Do not cover the machine-readable zone

The two lines of monospace text at the bottom of a passport data page (and the three-line block on an ID card) are the part that a border officer's reader actually consumes. Your thumb should never be near them, and your crop must include them even if they look like decoration.

They are also the most reliable place to read a name from: a scanner that understands MRZ can name the document after the person without guessing.

When the document is not flat

Old passports curl. Put the document under a sheet of plain glass from a picture frame if you have one, or press the spine flat with the ball of your hand. Photograph from directly above so the pressure point does not create a bright patch.

For a two-page residence permit or a folded certificate, capture each side separately and merge them into one document rather than trying to squeeze both onto one sheet.

Check the result before you file it

Zoom to the smallest text you care about. Check that the photo is not washed out, that the MRZ is sharp, and that no corner of the card is cut off. If you scanned with a phone, the whole check takes ten seconds — and it is the difference between a document you can submit and one you have to shoot again next week.

Diffuse light, a full frame with margin, colour capture and an intact machine-readable zone will beat any filter or mega-pixel count.

Scan your first document in under a minute

Free to install, no account, nothing uploaded. The whole scanner runs on your phone.

iOS 17+ · Android 8+ · Unlimited free scans