Image to Text Keeping Formatting and Layout
Learn how to turn text in a photo or scanned image into editable text that keeps its fonts, layout and tables, using OCR and PDF export in OmniDoc.
If you have a photo of a printed page, a scanned contract, or a screenshot of a report, you may have tried copying the text out. The result is usually a single block of words with broken line breaks, lost columns, and headings that look like body text. Retyping the page fixes the words but wastes time and loses the structure that made the page readable in the first place.
This guide is for anyone who needs image to text with formatting: paragraphs, headings, lists and tables that stay where they were. You will learn how to prepare the image, convert it with OCR in OmniDoc, export the result to Word or Excel, and check what came out. The short answer comes first, and the steps follow it.
One point to set expectations early: you can keep the reading order, paragraph breaks and table structure in most cases, but you cannot always reproduce the exact font and spacing of the original. Knowing where that line falls helps you decide how much cleanup to plan for.
How do you convert an image to text with formatting intact? The short answer
Save the image as a PDF, run OCR so the page becomes recognized text, and then export to Word or Excel so paragraphs and tables stay in place.
| Your situation | What to do | Why |
|---|---|---|
| Photo or scan of a text page | Save as PDF, run OCR in the desktop client, export to Word | Word keeps paragraphs, headings and lists as editable blocks |
| Image of a table or form | Run OCR, then export to Excel | Rows and columns map onto cells instead of one long line |
| You need the same look | Export to Word, then match fonts and spacing by hand | OCR recovers characters and positions, not the exact font family |
| You need translated text with the layout kept | Upload the PDF on omnidoc.top and choose translation only or bilingual output | Layout, tables and formulas are kept in the translated output |
| You only need the words | Run OCR and copy the text | Plain text is enough when structure does not matter |
Before you start
Check these four things before you convert. Each one changes how much work the rest of the process takes.
- Image sharpness and light. Use a flat, sharp image with even lighting and no shadows across the text. Blurred or shadowed characters are misread more often, and a misread character can break a whole word.
- Page edges. Frame the entire page, or crop tightly to the text area. A cut-off margin can drop a column header, and a skewed photo can merge two lines into one.
- The output you need. Decide whether you want Word for running text, Excel for tables, or both. The export target decides how the content is structured, so picking it first avoids a second conversion.
- The tool you will use. OCR and export to Word or Excel are part of the OmniDoc desktop client's PDF editor. You can download it from download.omnidoc.top for Windows, macOS or Linux. The web editor is useful for editing the exported Word file later, but the OCR and export steps below happen in the desktop client.
Turning a page image into formatted text in OmniDoc, step by step
- Save the image as a PDF. Open the image in any viewer you already use and choose its print or save-as-PDF option, or use your scanner's PDF setting. A PDF gives OCR a page-shaped input, which keeps line positions and page size intact.
- Open the PDF in the OmniDoc desktop client. Use the PDF editor to load the file. If the page is an image with no selectable text, it is a scanned PDF, and the next step is required.
- Run OCR on the scanned PDF. OCR reads the characters on the page and places them back into a text layer at their original positions. This is what lets you export text rather than a picture.
- Review the recognized text on screen. Scroll through the page and compare it with the original. If a paragraph is split or a column is merged, you can fix the affected text in the PDF editor before you export.
- Edit paragraph text where needed. Use the paragraph editing in the PDF editor to correct words or line breaks. Small fixes here are faster than fixing them in Word after export.
- Export to Word for text-heavy pages. Choose Word as the export format. Paragraphs, headings and lists come across as editable blocks, which suits contracts, letters, articles and notes.
- Export to Excel for tables. For a page built around a table, export to Excel instead. Each row and column is placed into cells, so you can sort, total or filter the data without retyping it.
- Open the exported file and check it. Look at headings, spacing and table boundaries against the original page. The next section covers what to look for.
If your goal is translated text rather than an editable copy, skip the export and upload the PDF on omnidoc.top. Choose translation only or bilingual side-by-side output. Layout, tables, formulas and pictures are kept in the translated result. Machine translation can still mistranslate terms or idioms, so review anything important before you share it.
Check the result
Once you have the exported file, compare it with the original page. The table below covers the checks that catch a common problems.
| Check | How to see it | If it's wrong |
|---|---|---|
| Paragraph breaks | Put the original and the export side by side and read the first lines of each paragraph | Fix the text in the PDF editor and export again, or split and join paragraphs in Word |
| Headings and lists | Look for changes in size, weight and indentation | Apply heading styles or list formatting in Word |
| Table rows and columns | Count rows and columns in both versions | Re-run OCR on a sharper, cropped image of the table, or correct cells in Excel |
| Fonts | Compare one line of body text in both versions | Install the original font if you have it, or choose a close substitute in Word |
| Easily confused characters | Read numbers, dates, names and accented letters slowly | Correct them by hand, since OCR can confuse characters such as 0 and O or 1 and l |
Pay closest attention to numbers, dates, names and amounts. A single misread digit can change the meaning of a contract or a financial table. Recognition is not perfect, so check important content against the original before you rely on it.
If the export looks wrong overall, the usual cause is the source image rather than the export step. Retake the photo flat and sharp, or scan at a higher resolution, and then repeat the OCR step.
❓ FAQ
1. Can I keep the exact same font when converting an image to text?
Often not exactly. OCR recognizes the characters and where they sit on the page, but it does not reliably identify the font family. In Word you can apply a font that is installed on your computer, which usually gets the look close enough for most documents.
2. Do free image to text converters keep formatting?
Results vary, so compare them using the same test page. Look at file size limits, whether watermarks are added, where your file is processed, and whether paragraphs, headings and tables survive the conversion. A page with a table is a good test because it shows structure loss quickly.
3. What if my photo was taken at an angle?
Retake the photo so the page fills the frame and the lines are straight, or crop tightly after you correct the angle in your image viewer. Skewed text reduces recognition quality and can merge neighboring lines. Converting to PDF after you fix the angle gives the cleanest result.
4. Can I get translated text while keeping the layout?
Yes. Upload the PDF on omnidoc.top and choose translation only or bilingual output. Layout, tables and formulas are kept in the translated result, which helps when the page structure matters as much as the words.
📝 Summary
Image to text with formatting works well when you start with a sharp PDF, run OCR in the OmniDoc desktop client, and export to Word for prose or Excel for tables. Check paragraphs, headings, tables and especially numbers against the original, since fonts may need a manual match.


