Tag: document conversion

Convert PDF to Markdown or JSON Online — With OCR for Scanned Documents

Convert PDF to Markdown or JSON Online — With OCR for Scanned Documents

PDFs are made for sharing, not reuse. Copy-pasting from them mangles headings, breaks tables, and loses lists, as anyone who has tried to move a PDF into a wiki, a repo, or an AI tool knows.

So we’ve added two new conversions to FreeFileConvert: PDF to Markdown and PDF to JSON. Both use layout-aware parsing that understands your document’s structure (headings, paragraphs, tables, lists) rather than scraping raw text off the page.

Markdown gives you clean, editable text for any editor, GitHub, or note app. JSON gives you the same content as machine-readable data, with the layout preserved. And if your PDF is a scan rather than a digital file, an OCR toggle reads text straight from the images, with support for English, Spanish, French, German, Chinese, Arabic, and more.

Digital PDF or scan?

The test is simple: can you select text in your PDF viewer?

If yes, it’s a digital document made from Word, Google Docs, LaTeX, or an export. Leave OCR off (the default). The full document is processed with no page cap, and it’s fast.

If not, your PDF is pictures of pages, like a scanned invoice or a photographed contract. Open Fine-tune and switch on Scan or photograph (OCR). Since OCR is slower, only the first 10 pages are processed, so split longer scans into chunks. Setting the document language noticeably improves accuracy for non-English scans.

How to convert

Go to freefileconvert.com, upload your PDF, and pick MD or JSON as the output format. Open Fine-tune if you need OCR or a language setting, then convert and download. Nothing to install; it runs in your browser.

Markdown or JSON?

Pick Markdown when a human will read or edit the result: documentation, blog drafts, notes, READMEs, wiki pages.

Pick JSON when a machine will consume it: automation, content migration, search indexing, or anywhere downstream tools need to know what’s a heading, a table, or body text.

Built for LLMs and AI workflows

Language models work far better with structured text than raw PDFs. Paste converted Markdown into ChatGPT, Claude, or Gemini, and the model sees real headings and tables instead of jumbled extracted text, so answers get noticeably sharper. The clean output also uses fewer tokens, leaving more room in the context window.

For developers, Markdown’s heading structure gives RAG pipelines natural chunk boundaries, so retrieval returns coherent sections rather than arbitrary fragments. Converted specs and API docs can live in your repo where tools like Cursor and Copilot pick them up as context. The JSON output suits agents extracting fields from invoices, contracts, or reports, since the structure arrives as data rather than free text.

Combine this with OCR, and even a photographed contract becomes LLM-ready text in one step.

Tips for best results

Keep OCR off for born-digital PDFs, since it’s faster and more accurate. Reach for it only when text isn’t selectable, and set the language for non-English scans. Split long scans into chunks of 10 pages or fewer. Very complex layouts may need a quick cleanup afterwards, which is still far faster than retyping.

Better success rates for AMV, AMR, WOFF2, FIG, HTML→Excel, and more

Audio and video

We improved several audio and video conversions that didn’t perform as expected. Converting MP3 (or other audio) to AMV or AMR used to fail because the right codecs weren’t available in our pipeline; we’ve added support so those conversions complete successfully. We also improved cases where you convert audio-only files to video formats like AMV: the converter now handles them correctly instead of failing. If you work with music or voice and need AMV, AMR, or similar formats, you should see better performance.

Documents and spreadsheets

We addressed problems with document and spreadsheet conversions. HTML to XLSX (or XLS/CSV) was a common failure: many HTML files were being opened as documents instead of spreadsheets, so the export step failed. We’ve improved that so HTML with tables is opened as a spreadsheet and converts to Excel or CSV reliably. We also stopped offering a few document conversions that don’t work in practice (for example, Word to BibTeX), so you’re not offered options that would always fail. PDF to SWF has a very low success rate with the tools we use, so we might phase that option out—though we may look into better ways to support it in future.

Fonts

We improved font conversions involving modern web formats. TTF and OTF to WOFF2, and WOFF2 back to TTF, were failing because of a mismatch in how the font tools were being invoked. We’ve corrected that, so these conversions run reliably. If you’re preparing fonts for the web or need to convert back to TTF, those paths should now work as expected.

Images and vector graphics

We improved image and vector conversions in two ways. For FIG (Xfig) files, we added a more reliable path: FIG to SVG, PDF, PNG, and other formats. Now, so FIG conversions succeed much more often. For Corel CMX, we narrowed what we offer: converting from vector formats (e.g. SVG, CDR, WMF) to CMX works, and we kept those; converting from raster images (PNG, JPEG, etc.) to CMX doesn’t work reliably in the tools we use, so we removed those options to avoid repeated failures. You’ll only see CMX as an output when the source format can actually be converted to it.