Document Converter

Markdown, HTML, Word (.docx) and EPUB, converted in your browser. Files are never uploaded.

FromAuto-detect
To
LaTeX is not supported.

Converted on your device. The file is never uploaded.

The converted document will appear here

Choose a file or paste text, pick an output format, then Convert

READY

About the Document Converter

The Document Converter turns Markdown, HTML, Word (.docx), and EPUB files into each other, in your browser. Every conversion goes through one step in the middle: the input is read into clean HTML, and that HTML is written out in the format you pick. Word files are read with mammoth and written with the docx library, EPUB archives are unpacked and built with fflate, Markdown is rendered with react-markdown and remark-gfm (GitHub Flavored Markdown), and HTML becomes Markdown with turndown. These libraries are downloaded the first time you click Convert. Your file is never uploaded: it is read and converted in the page, the result is created on your device, and only the input and output formats are saved in the page address.

Updated: November 13, 2026

How to use the converter

  • Drop a `.md`, `.markdown`, `.html`, `.htm`, `.xhtml`, `.docx`, or `.epub` file onto the drop zone, or click it to choose one. The input format comes from the file extension. Files up to 50 MB are accepted. Older binary Word files (`.doc`) are not supported.
  • For Markdown or HTML you can also switch to Paste text and choose which of the two you pasted. Click Sample to load an example Markdown document.
  • Pick the output format under To: Markdown, HTML, Word (DOCX), or EPUB. The input format is greyed out.
  • Optionally set a Title (used for the HTML `<title>`, the Word document properties, and the EPUB metadata; by default it comes from the HTML `<title>`, the EPUB metadata, or the first level-1 heading) and tick Include table of contents to add a contents list built from h1 and h2 headings.
  • Click Convert. The Preview tab shows the converted content in a sandboxed frame; for Markdown and HTML output the Source tab shows the text, with Copy. Click Download to save the file. Notes about anything that was skipped or could not be converted appear above the preview.

What is preserved

  • Structure: headings h1 to h6, paragraphs, line breaks, bulleted and numbered lists (including nested lists), block quotes, code blocks, horizontal rules, and tables.
  • Inline formatting: bold, italic, underline, strikethrough, inline code, superscript, and subscript. Word output uses Courier New for code. Markdown output uses `**bold**`, `_italic_`, `~~strikethrough~~`, and backticks; Markdown has no underline, superscript, or subscript syntax, so that text is kept without the formatting.
  • Links: web, mailto:, and tel: links are kept. In Word output, links to a heading in the same document (such as table of contents entries) become internal links to a bookmark on that heading.
  • Images: images embedded in a Word or EPUB file, and data: URL images in HTML or Markdown, are carried over. Word output embeds PNG, JPEG, GIF, and BMP images, scaled to at most 600 pixels wide; WebP and SVG images are skipped there. EPUB output packages embedded images as files in the book. Images that point to a web address or a relative path are kept as links in HTML and Markdown output but are never downloaded, so they are left out of Word and EPUB output.
  • Tables: Markdown output writes GitHub Flavored Markdown tables, which always use the first row as the header row; merged cells are flattened. Word output keeps cells merged across columns (colspan) but not cells merged across rows (rowspan).

What is not preserved

  • Word page layout and design: page size, margins, columns, section breaks, headers and footers, fonts, font sizes, colours, alignment, and custom paragraph styles. Paragraphs in a style the reader does not recognise become plain paragraphs, and each such style is listed in the notes.
  • Word review features: comments are dropped, and tracked changes are not kept as revisions.
  • Word objects such as charts, SmartArt, equations, and form fields. Text boxes are read as separate paragraphs after the paragraph that holds them.
  • Styling from HTML and EPUB: stylesheets, inline styles, and classes are removed, as are scripts, iframes, embedded media, forms, SVG, and MathML.
  • Numbered lists always start at 1 in Word output (a list that started at another number in the input restarts at 1), and nested numbered lists use 1., a., i. at successive levels.
  • LaTeX is not supported, as input or as output.

How EPUB books are read and written

  • Reading: the converter follows `META-INF/container.xml` to the package (OPF) file, reads the chapters in spine order, and joins them into one document. The book title comes from the package metadata. The navigation page is skipped, since you can add a new table of contents with the option. Links between chapters that point to an anchor become links within the document, and images are embedded.
  • Writing: the output is an EPUB 3 package with the `mimetype` file stored first and uncompressed, a package file with the title, language (`en`), a random identifier, and a modification time, and a navigation document whose table of contents lists h1 and h2 headings. A new chapter starts at each top-level h1 heading. Include table of contents also puts the contents page at the start of the reading order.
  • Safety limits: an EPUB may hold at most 5,000 files and expand to at most 100 MB, and archives with file paths that try to leave the archive (such as `../`) are rejected. These checks guard against zip bombs and malformed books.

Privacy and security

Files are read with the browser File API and converted in the page, so no document content is sent to our servers. Analytics records only events such as a conversion succeeding or failing or a download, never the content or the file name. The page address holds only the input and output formats, never your text or file. Every document is cleaned before it is shown or converted: only known structural and text elements are kept, event handler attributes and styles are removed, and links are limited to web, mailto:, tel:, and relative addresses. Raw HTML inside Markdown is shown as text, not rendered. The preview runs in a sandboxed frame with scripts disabled and a content security policy that blocks all network requests, so remote images in a document are not loaded and cannot be used to track that you opened it.

Frequently Asked Questions

Are my files uploaded to a server?
No. The file is read and converted in your browser tab, and the result is created on your device. The conversion libraries are downloaded from this site the first time you click Convert, but your document is never sent anywhere.
Which conversions are supported?
Any of Markdown, HTML, Word (.docx), and EPUB to any other of the four, twelve directions in all. Every conversion reads the input into HTML and writes the output from that HTML, so the result keeps the content and structure that HTML can express. Older .doc files, PDF, and LaTeX are not supported.
Will my Word document look the same after converting to EPUB or Markdown and back?
The text, headings, lists, tables, links, and embedded images survive, but the page design does not. Page size, margins, headers and footers, fonts, colours, comments, and tracked changes are lost, and Word output uses the default Word styles for headings and text.
Why are some images missing from the Word or EPUB file?
Only images embedded in the input are carried into Word and EPUB output. Images that point to a web address or a relative file path are never downloaded, so they are skipped, and Word output also skips WebP and SVG images. The notes above the preview list how many images were skipped.
Can it convert LaTeX?
No. LaTeX is not supported as input or output. Export LaTeX to HTML with a tool such as Pandoc or make4ht and convert the HTML here.
Is there a file size limit?
Yes. Input files can be up to 50 MB. EPUB archives may also expand to at most 100 MB and hold at most 5,000 files. Very large documents can take a few seconds to convert, and the Convert button shows a busy state while it runs.