DOCUMENT CONVERTER

PDF → Markdown

Back to tool
Guide

How to Convert a Scanned PDF to Markdown (OCR Workflow)

Scanned PDFs are images, not text. Here's how OCR turns them into clean Markdown, plus fixes for skewed scans, handwriting, and multi-column layouts.

2026-09-19 · 5 min read

A scanned PDF is a stack of page images. There is no text layer inside, so a tool that only extracts embedded text returns nothing useful. To get Markdown out of a scanned document, something has to read the pixels and recognize characters — that is OCR (optical character recognition). This guide covers what OCR does to your file, the conversion workflow, the failure cases that produce garbled output, and how to verify quality before the text reaches Obsidian, Notion, or an LLM pipeline.

Why scanned PDFs need OCR before they can become Markdown

PDFs fall into two categories, and the difference decides everything downstream:

  • Digital-born PDFs store text as characters. Extraction is essentially a copy-paste operation.
  • Scanned PDFs store a bitmap per page. The letters you see are ink, not data.

Test it yourself: open the PDF and drag your cursor across a line. If words highlight, the file has a text layer and you can skip OCR — the steps in convert PDF to Markdown work directly. If nothing highlights, you are working with page images.

OCR bridges the gap. The engine segments each page into lines and words, recognizes characters, and returns text with rough layout coordinates. A converter then maps those coordinates onto Markdown structure: large centered lines become ## headings, indented blocks become lists, consecutive lines become paragraphs. Recognizing characters is only half the job; inferring which characters belong together and what role they play is the other half.

Step-by-step: converting a scanned PDF to Markdown

1. Prepare the file before uploading

OCR quality is decided mostly by the input. A few minutes of preparation pays off:

  • Target 300 DPI for text. Below roughly 200 DPI, small type and punctuation start dropping out.
  • Deskew pages. Even a few degrees of tilt confuses line segmentation.
  • Split double-page spreads (one scan showing two book pages) into one page per image, or the two halves merge into each other.
  • Keep it as one PDF if you want one Markdown file; split it if you want a file per chapter.

2. Run the conversion

Open the free PDF to Markdown converter, upload the scanned PDF, and select Markdown as the output format. OCR runs page by page. A 200-page scan takes noticeably longer than a digital-born PDF of the same length, because every page must be recognized rather than read.

3. Inspect the raw Markdown

Open the result in a plain text editor, not a rendered preview. You want to see the actual # characters, blank lines, and table pipes. Note where the structure broke: headings that came out as plain paragraphs, lists merged into a wall of text, tables flattened into loose lines.

4. Clean up and import

Fix the delimiters, delete running headers and page numbers that OCR preserved as body text, and add YAML frontmatter if your tool expects it. For a process that scales to a folder of files, see the PDF to Markdown workflow.

Common failure cases and how to handle them

Skewed or rotated pages

OCR engines assume text baselines are horizontal. A 90° or 180° rotation is usually detected automatically; a three-degree tilt from a hand-held phone scan often is not, and the page comes back as fragments. If one section of your document is garbled while the rest is clean, check those pages for skew, re-scan or deskew them, and convert again.

Handwriting

Most engines are trained on printed type. Handwritten annotations, signatures, and marginalia typically return as nonsense strings or disappear entirely. If your PDF mixes printed body text with handwritten notes, expect the printed text to convert and the handwriting to need manual transcription.

Multi-column layouts

This is the most common problem in academic papers. If the engine reads across the full page width, it interleaves the left and right columns sentence by sentence. Cropping each column into its own page before OCR fixes it. Otherwise you will be reordering paragraphs by hand after conversion.

Tables, footnotes, and formulas

Simple tables sometimes survive as Markdown tables; complex ones with merged cells usually come out as loose lines of text that you rebuild manually. Footnote markers drift away from their anchors. Inline math and equations almost always need to be re-entered. Budget time for these if your document is table- or formula-heavy.

Low resolution and poor contrast

Faint photocopies, faxed pages, and heavily compressed scans lose punctuation and thin strokes. Re-scan at a higher DPI while you still have the paper. If you do not, plan to proofread every line rather than spot-checking a few.

How to verify OCR output quality

Do not judge OCR by whether the first page looks fine. Use these checks:

  1. Three-page comparison. Put the original and the Markdown side by side for the first, middle, and last page. Errors cluster on dense pages and on pages near a fold or shadow.
  2. Search for known strings. Pick a proper noun, a number, and a technical term from the source and search the Markdown. Anything missing means recognition failed there.
  3. Search for classic confusions. Look for rn where m belongs, and for 1/l/I, 0/O, 5/S, cl/d. A handful is normal; dozens means the scan was too poor or the type too small.
  4. Check structure separately from text. Even with clean characters, heading levels and list markers can be wrong. Verify that the Markdown's heading sequence matches the PDF's outline or table of contents.

If several checks fail, do not repair the output by hand — improve the input and reconvert. The OCR best practices for scanned PDFs guide covers resolution, preprocessing, and batch handling in more detail.

FAQ

Can a scanned PDF be converted to Markdown without OCR?

No. Without a text layer there is nothing to extract. Any tool that appears to produce text from a scanned PDF is running OCR under the hood. The only alternative is typing or dictating the content yourself.

Will handwritten notes convert accurately?

Usually not. General-purpose OCR is built for printed characters, so handwriting comes back incomplete or garbled. Treat any handwritten portion as a manual transcription task and use OCR only for the printed parts of the document.

Why does my two-column paper come out scrambled?

The engine is reading across the full page width and interleaving the columns. Crop the PDF into single-column pages before converting, or reorder the paragraphs afterward. Skew makes this worse, so deskew the pages as well.

Ready to try it? Convert your first PDF for free — 200 pages per month, no credit card required. More questions? Check the FAQ or the blog.