The expense form wants the date, the items and the total; the paper in your hand has all three, but none of it can be copied. Retyping a long itemised receipt is slow, and a single transposed digit in the total turns a routine claim into a wrong one.
OCR is the shortcut: software that reads the shapes in a photo and works out which characters they are. This guide shows how to pull the text off a receipt with the free Image to Text tool on Ovatly, which runs the Tesseract OCR engine inside your browser, so the photo never leaves your device. It also builds in the step that makes the shortcut safe for expenses: checking every number against the paper before the text is allowed into your records.
Contents
- Quick answer
- Why receipt numbers deserve their own check
- How to photograph a receipt so it reads cleanly
- How to extract the text, step by step
- Worked example: using the counts, then checking the figures
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
Photograph the receipt flat, straight and evenly lit. Open the Image to Text tool, choose the photo, confirm the preview shows the whole receipt, and press Read the text. When the recognised text appears, go through the result box against the paper: the date, each item price, and the total, digit by digit. Fix any mismatch by editing the box, then copy the corrected text into your expense record or download it as a .txt file.
Why receipt numbers deserve their own check
Tesseract does not read the way you do. It scans the image for shapes that match the character forms it was trained on and returns its best interpretation as plain text. It has no understanding of what it is looking at, which is why a distorted character becomes a confident wrong guess instead of a skipped one.
In ordinary prose, a wrong guess usually betrays itself: a strange word stands out, and a spellchecker may flag it. Numbers offer no such safety net. A misread price or total is just another plausible figure, indistinguishable from the correct one until someone compares it with the paper. For an expense record that matters more than anywhere else: the total is the amount you are claiming, and a quiet digit swap makes the claim wrong in a way nobody will notice later.
So treat the OCR result as a draft that has done the typing for you, not as a verified copy. The result box is editable precisely so the verification happens there, while the paper is still in front of you, not after the receipt has been thrown away.
How to photograph a receipt so it reads cleanly
The engine reads printed English text in ordinary fonts on a clean background, and it rewards clear, high-contrast images. Receipts fight against that: they are long, narrow, and determined to curl. A few seconds of preparation decide the result.
Lay the receipt flat and smooth out the curl as best you can. Photograph it straight from above rather than at an angle, because a tilted shot stretches the letterforms across the frame and the matcher struggles with them. Fill the frame with the receipt, keep the whole thing in shot from the shop name to the total, and watch for your own shadow and for glare from overhead lights, both of which lower the contrast the engine depends on. If the first photo looks grey or skewed to your eye, it will read worse to the engine; retake it before you run anything.
How to extract the text, step by step
- Open the Image to Text tool and choose your receipt photo with the file box. A preview appears, so you can confirm the whole receipt is in the shot before running anything.
- Press Read the text and watch the progress bar. On the first run, the engine and English language data download from a public CDN; your browser caches them, so later runs start faster. Your photo itself is never sent anywhere.
- Read the recognised text in the result box against the paper. Start with the date, then work down the item prices, then check the total on its own, digit by digit. The summary underneath reports word, line and character counts, a quick completeness check.
- Fix any mistakes by editing the text directly in the box, while the paper is still beside you.
- Copy the corrected text into your expense form, spreadsheet or notes, or download it as a .txt file to keep with the claim.
Worked example: using the counts, then checking the figures
The counts under the result are your first tripwire. Give the tool a clear screenshot of a short printed notice reading "Meeting moved to Friday" and it returns exactly that line, with a summary of "4 words, 1 lines, 23 characters": four words, one line, twenty-three characters including spaces.
Scale that behaviour up to a receipt. A long itemised receipt holds dozens of printed lines, so the result should report dozens of lines too. If it comes back with a handful, the photo defeated the engine, and the fix is a flatter, straighter, better-lit photograph, not editing the fragments into shape. When the counts look right, read the result box against the paper line by line: the date first, because it anchors the claim; then each item price in order; then the total last and separately, because the total is the figure your expense record stands on. Only then is the text copied across.
Limitations and honest tradeoffs
The tool reads English only. Tesseract needs a separate trained data file for every language, and this tool ships with the English one; a receipt in another language will come back garbled or empty, and nothing in the tool translates it.
Handwriting is the other firm boundary. The engine is trained on printed text, so a handwritten tip, note or signature on the receipt will produce errors or nothing; read those additions yourself and type them in. Layout is not preserved either: the output is the text in reading order, not a recreation of the receipt's columns, so an amount can land detached from the item it belongs to. That is another reason the line-by-line check is part of the workflow, not an optional extra. Long receipts also take a moment, because the engine works through the image on your device.
Common mistakes
- Copying the total without checking it. OCR errors in numbers look plausible. Compare the total digit by digit before it leaves the result box.
- Running a curled, shadowy photo and blaming the tool. The same receipt, flattened and evenly lit, usually reads cleanly. Prepare the photo first.
- Trusting the output when the counts are wrong. Word and line counts far short of the paper mean the recognition failed. Fix the photo, not the fragments.
- Expecting handwriting or another language to work. Both sit outside what this engine, with English printed-text data, can do.
- Re-running the same bad photo unchanged. A second run on identical input gives an identical result. Change the input: flatter, straighter, higher contrast.
FAQs
Is my receipt photo uploaded to a server? No. The Tesseract engine runs in your browser and reads the photo on your device. The only downloads are the engine and its English language data, fetched once from a public CDN on first use and then cached by your browser.
The text looks right, so why check the numbers separately? Because OCR reads shapes, not meaning, and digit substitutions are the hardest errors to spot: a misread figure looks exactly like a real one. In an expense record a wrong total is a wrong claim, so compare the date, the item prices and the total against the paper, digit by digit, and fix anything that differs in the result box.
Can it read a handwritten note or tip written on the receipt? Not reliably. The engine is trained on printed text, so handwriting produces errors or nothing at all. Read handwritten additions yourself and type them in alongside the printed text.
Will it work on a receipt printed in another language? No. This tool ships with English language data only, so text in other languages will come back garbled or empty rather than recognised, and nothing in the tool translates it.
What do I do with the text once I have checked it? Copy the corrected text from the result box into your expense form, spreadsheet or accounting notes, or download it as a .txt file to keep with the claim. The word, line and character counts under the result help you confirm the whole receipt was read.
Conclusion
A receipt photo becomes expense-ready text: photograph it flat and straight, run the Image to Text tool, verify the date, prices and total against the paper in the result box, and copy the corrected text into your records, all without the photo leaving your device. The same routine turns coursework images into notes, as our guide on turning lecture slides from photos into study text shows. For more in this series, see the File and Data Conversion guides.
References
- Tesseract OCR, the open source engine that runs in the browser for this tool: https://github.com/tesseract-ocr/tesseract
- MDN Web Docs, on the File API used to read files locally in the browser: https://developer.mozilla.org/en-US/docs/Web/API/File_API