📄↔️📄

Document Converter

Convert between Text, HTML, JSON, CSV, Markdown, PDF, and Word. 100% client-side, no data leaves your device.

7 Formats File Upload Copy and Download Real-time Stats

Built-in extras

The right extension is added automatically.

Name the downloaded file anything you like and clean up stray blank lines around the result.

⚡ PDF/Word conversion: Real PDF/Word files generated on download.
Words 0
Characters 0
Lines 0

📄 Converted Document:

⚡ All conversions happen in your browser. For PDF/Word, files are generated locally.
Converting...

Step by step

How to use the Document Converter

4 short steps from a blank page to a finished result. Nothing to install, nothing to sign up for, and the panel sits right above this text.

  • Runs in this tab, nothing to install
  • No account and no daily cap
  • Works on phone, tablet and desktop
  1. Pick the input type

    PDF and Word ask for a file upload, while text, HTML, Markdown, JSON and CSV open an editor for pasted content.

  2. Pick the output type

    Choose the format you want back, text, HTML, Markdown, JSON, CSV, PDF or a .doc, then convert.

  3. Download converted file

    Save the converted file. Text and content carry across, but layout, colours and images are not preserved, so use it for reading and re-use rather than a layout copy.

  4. Use the built-in extras

    Open the Built-in extras panel to set the output file name and remove blank lines.

Questions

Frequently asked questions

Everything people ask about the Document Converter, answered plainly.

About this tool

About the Document Converter

What it does, who it is for, and how the thing is built.

A text extractor first and a format converter second. Drop in a PDF or a Word file and the words come out, or paste text and move it between HTML, Markdown, JSON and CSV. Spreadsheets and images are not handled here, and no page layout is rebuilt, so expect clean paragraphs rather than a copy of the original design. Built-in extras include a custom Output File Name field and a Remove Leading and Trailing Blank Lines toggle.

Core advantages

One page covers what a text pipeline actually needs: .pdf and .docx for reading, then text, HTML, Markdown, JSON and CSV on the way out. Both readers run in the browser, pdf.js for the PDF text layer and mammoth for .docx, so a confidential file never leaves the machine. A scanned PDF is the one case it cannot rescue, because there is no text layer to read and no OCR is used here.

Architecture & security

PDF text is read page by page with pdf.js getTextContent, which exposes the text layer of a digital PDF. Word files go through mammoth, which returns the raw text of a .docx, while a legacy .doc has no public parser and is salvaged as printable runs on a best-effort basis. The remaining pairs, text to HTML or Markdown, JSON, CSV and back, are string transforms in the same page. Nothing is uploaded and no conversion server sits in the middle.

📅 Last reviewed October 23, 2026 by the ToolFlic team

Under the hood

How the Document Converter actually works

No marketing filler: the mechanics, the trade-offs and the real limits, explained clearly.

How it actually works

Thirteen paths across text, HTML, JSON, CSV, Markdown, PDF and Word, and each one uses the parser that genuinely understands the container. A PDF is decoded by pdf.js, whose text items carry their own coordinates, so extraction groups items by vertical position and starts a new line once the y value moves more than three points, which is what keeps a page of prose in paragraphs instead of one long ribbon.

A .docx is unpacked with Mammoth 1.4.2 using extractRawText, which returns real paragraph breaks. A legacy binary .doc has no browser parser, so its bytes are decoded and printable runs are salvaged, with a message telling you exactly that. Everything else is plain text and is read directly. The output side is equally concrete. PDFs are built with jsPDF using splitTextToSize at a 180mm measure with manual page breaks, and Word downloads are genuine RTF with escaped control words rather than a text file wearing a .doc name. Built-in extras. Set the output file name and remove blank lines.

What that means for your results

Because the format is detected before anything is decoded, the output contains what your document actually said. Reading a PDF or Word file as raw text would have handed you compressed byte noise. Instead a clean digital PDF comes back as readable paragraphs you can pipe straight into the HTML or JSON direction.

Treat the RTF as text with paragraphs, not as formatting. Whatever you converted is normalised to one typeface with real line breaks that Word, LibreOffice and Pages all honour. The HTML, JSON and CSV directions are string transformations rather than document parses, so they are exact for well-formed input and unforgiving of malformed input.

Where it falls short, honestly

The markup helpers are subsets by design. Markdown to HTML recognises three heading levels, bold, italic, links and line breaks, lists, code blocks, blockquotes, tables and images pass through as literal text. HTML to text strips tags with a regular expression rather than a DOM parser, so the contents of a script or style block can leak into the result. CSV is split on commas, so a field containing a comma must already be quoted or the columns shift.

Nothing here preserves layout, colour, images or styles. If the goal is a document that looks like the original, that is a different tool: PDF to Word for text out of a PDF, Word to PDF to fix a document for print, Excel to PDF for grids.

A real end-to-end workflow

The everyday use is feeding one format into another tool or a paste target. Pull the text out of a PDF here, then check its length with Word Counter, reshape it with Article Rewriter, or run the JSON direction and confirm the result with JSON Validator.

For a data pipeline, convert CSV to JSON for a script and Markdown to HTML for a CMS body, but keep the plain text as your source of truth, every step here is one-way, since reading HTML back into text loses whatever the intermediate format could not express. For markup outside these five, XML to JSON and JSON to XML cover that pair.

Your privacy is our core mission

We've built this utility specifically to protect your digital footprint. Every byte of data is processed locally within your browser. It never touches our servers. That is our absolute guarantee.

Designed for productivity and built around one idea: your privacy. Whether a tool runs entirely on your device or fetches a live result, we keep nothing: no account, no stored queries, nothing sold on. The only thing we count is an anonymous up or down vote per tool, which is exactly what the feedback box on this card sends.

Was this tool helpful?

Anonymous: no account, no IP address, nothing that identifies you.

Recognised & listed on