<!-- Markdown version of https://ocxly.com/tomarkdown.html · auto-generated, may lag the live page -->

# Anything to Markdown_

Turn PDFs, Word documents, plain text, and even images with text into clean Markdown — entirely in your browser. Nothing is uploaded. Images are read with on-device OCR; Word files keep their headings, lists, and links.

**Drop a file** or click to choose

PDF · DOCX · DOC · TXT · JPG / PNG / WebP (with text)

## How each format is handled

**Plain text (.txt)** is already close to Markdown, so it passes through directly. **PDF** text is extracted page-by-page with [PDF.js](https://mozilla.github.io/pdf.js/) and pages are separated with a horizontal rule. **Word (.docx)** is the richest conversion: [Mammoth](https://github.com/mwilliamson/mammoth.js) reads the document structure and [Turndown](https://github.com/mixmark-io/turndown) turns it into Markdown, preserving headings, bold and italic, lists, links, and tables.

### Images with text (OCR)

JPG, PNG, and WebP files are read with [Tesseract.js](https://tesseract.projectnaptha.com/), an optical-character-recognition engine that runs entirely on your device. The first image takes a little longer because the recognition model downloads once, then it’s cached. OCR works best on clear, high-contrast text; handwriting and low-resolution scans are less reliable.

### A note on legacy .doc

The old binary **.doc** format (Word 97–2003) has no reliable in-browser parser, so this tool does a best-effort text extraction and flags the result. For a faithful conversion, open the file in Word or Google Docs and save it as **.docx** first, then convert that.

## Accessibility

### Screen reader support

---
*Source: [ocxly.com/tomarkdown.html](https://ocxly.com/tomarkdown.html) — OCXLY, free 100% client-side privacy-first tools. Convert PDF, Word (DOCX), TXT, and images with text into clean Markdown in your browser — OCR included, no uploads.*
