Markdown conversion guide: Word, HTML, PDF and tables
Compare Markdown conversion to Word, HTML and PDF, plus supported reverse conversions. Check headings, lists, links and tables before publishing documents.
Choose an operation for your task
Compare Markdown conversion to Word, HTML and PDF, plus supported reverse conversions. Check headings, lists, links and tables before publishing documents.
| Your task | Where to start |
|---|---|
| Hand off an editable document | Export DOCX and check editable headings, lists and cells |
| Use content on a website | Export HTML and review supported structure and styles |
| Prepare a print layout | Prepare the print preview and use the browser PDF destination |
Work in order and retain the original
Preview the document before choosing Word, HTML or PDF output. Check heading hierarchy before page layout: a visual size change is not necessarily a heading. External resources are not fetched automatically. When converting existing Word or HTML, compare structure and links before treating the result as the new source of truth.
# Release notes
- Fixed the import
- Checked the output
Keep code fences around literal examples.Separate processing success from acceptance
Reopen the export and inspect tables, list nesting, code and links. Conversion does not execute scripts or recover layout that the source format cannot express.
Before you finish
Expand a tool below for its steps, options and limits. Choose the tools needed for your task; you do not need to use every one.
- Reopen the export and inspect tables, list nesting, code and links. Conversion does not execute scripts or recover layout that the source format cannot express.
- Reopen the download and compare it with the example and the meaning of the input.
- When an input exceeds the stated boundaries, retain it and split the task or use a suitable processor; renaming an extension does not make it compatible.
References
- Markdown — format and implementation reference
Reference for format and processing boundaries. The operating reference states the actual supported scope of this site.
Tools in this category
Expand a tool to see its steps, options and supported formats, then open its workspace.
Markdown to WordMake an editable Word document from Markdown.
Create an editable Word document from Markdown headings, paragraphs, lists, code blocks and simple tables, with supported bold, italic and strikethrough formatting. The converter handles a limited set of Markdown features; it does not fully implement CommonMark or GFM.
Steps
- Paste Markdown or choose a UTF-8 file. If the text box is not empty, its contents take priority over the file.
- Choose A4 (the default) or Letter and a whole-number body font size from 8 to 20 pt (11 pt by default). “Document title (file properties)” sets the file's title property; add a Markdown heading if you want a visible title. Select “Create Word document”.
- Download the DOCX. It uses the selected file's name with a .docx extension, or document.docx for pasted text alone. Setting the document title does not change this name.
Available options
- Document title (file properties)
- Enter as needed
- Paper size
- A4 · Letter
- Body font size (pt)
- 11
Capabilities and limits
- Paste up to 1 MiB of Markdown, or choose one UTF-8 .md, .markdown or .txt file up to 20 MiB. File names can be up to 512 characters; some characters, such as emoji, count as two. Settings can use up to 2 MiB in total. Pasted text and settings are measured in UTF-8 bytes.
Markdown to HTMLCreate a styled HTML file from Markdown and preview it in your browser.
Create a standalone UTF-8 HTML file with styles included. It handles headings, paragraphs, lists, code blocks, quotes and simple tables, as well as bold, italic and strikethrough text. The converter supports a limited Markdown subset; it does not fully implement CommonMark or GFM. Images written as  keep only their alt text. Reference-style images, raw HTML and math notation remain text.
Steps
- Paste Markdown or choose a UTF-8 file. If the text box has content, that text takes priority over the selected file.
- Check “Page title” and “Document language”, then select “Create HTML”. The language setting does not translate the text.
- Check the preview, then select “Download” to save document.html. Open the saved file in a browser and compare its text, tables and links with the Markdown source.
Available options
- Page title
- Enter as needed
Sets the title shown in the browser tab, without adding a heading or changing the filename. Leave blank to use text from the start of your Markdown, with leading # heading markers removed. The automatic title is limited to 100 characters; some characters, such as emoji, count as two. If no title text remains, document.html is used.
- Document language
- en
Set the language of the HTML document, for example en, zh or zh-Hans. The default is en. Use hyphens rather than underscores, up to 35 characters in total. This setting does not translate the text or change the site’s interface language.
Capabilities and limits
- Paste up to 1 MiB of Markdown, or choose one UTF-8 .md, .markdown or .txt file up to 10 MiB. Filenames can be up to 512 characters; some characters, such as emoji, count as two. Settings have a combined 2 MiB limit. Pasted text and settings are measured in UTF-8 bytes.
Preview MarkdownPreview supported Markdown formatting from your text.
Render headings, lists, tables and code from Markdown in your browser. Raw HTML appears as text, and images are represented by their alt text rather than loaded into the preview.
Steps
- Paste Markdown into the editor. To preview a local file, clear the editor, choose one UTF-8 file and select “Preview Markdown”. Pasted text takes priority when both are present.
- Set an optional document title and language. When either the Markdown or title is nonblank, edits trigger a preview after a 300 ms pause. You can also select “Preview Markdown” to run it manually.
- Review the headings, lists, tables, links and code in the preview. Keep your Markdown source separately and check it in the editor or publishing system where you plan to use it.
Available options
- Document title
- Enter as needed
Sets the HTML document title. Leave it blank to use a short title derived from the start of your Markdown. It does not change headings in the source.
- Document language
- en
Use a language tag such as en or zh-Hans. A blank value or unsupported tag syntax uses en. This setting does not translate your text.
Capabilities and limits
- Pasted Markdown is limited to 1 MiB (1,048,576 UTF-8 bytes), including spaces and line breaks. Non-ASCII characters may use more than one byte.
- Choose one UTF-8 .md, .markdown or .txt file up to 10 MiB. Its name, including the extension, must fit within 512 UTF-16 code units. Clear the editor to preview the file instead of the pasted text.
- The preview supports a subset of Markdown. Deeply nested lists or blockquotes can exceed the parser's limit; simplify them and keep the title and language settings short if processing fails.
HTML to MarkdownTurn HTML source into Markdown text for editing or reuse.
Convert headings, paragraphs, emphasis, lists, links and simple tables from HTML source into Markdown. Images become alt text, while scripts, styles and embedded frames are removed. Check the result against the source; page styling and layout are not preserved.
Steps
- Paste HTML into “HTML input”, or select a local HTML or text file. Clear the input box to use the file.
- Select “Convert to Markdown” to generate the result.
- Compare the Markdown with your source, then copy the complete text or download document.md. Check links, tables and code spacing before using it.
Capabilities and limits
- Pasted HTML is limited to 1 MiB of UTF-8 bytes, including spaces and line breaks.
- Choose one UTF-8 .html, .htm or .txt file up to 10 MiB, with a filename of at most 512 UTF-16 units including the extension. Conversion also limits decoded HTML to 1,048,576 UTF-16 units, so a file accepted by the picker may still be too long.
- Nonempty pasted text, including whitespace, takes priority over a selected file. The file still goes through size, filename and read checks. Empty input fails; nonempty source made only of whitespace or discarded elements can produce an empty Markdown file.
Markdown to PDFFormat Markdown for printing, then save as PDF if your browser offers it.
Turn Markdown notes or a README into a printable page. Choose a paper size, text size and margins, prepare the preview, then open the browser’s print dialog to print or save as PDF where available.
Steps
- Paste Markdown into “Markdown input”, or clear that input and choose a UTF-8 .md, .markdown or .txt file.
- Review the document title and language, choose a paper size, then set whole-number values for font size and page margin. Click “Prepare print preview”.
- Check the print preview, click “Print or save as PDF”, and choose a PDF destination in the browser dialog when available. Check the saved PDF before sharing it.
Available options
- Document title
- Enter as needed
Sets the document title used by the browser. Leave blank to infer it from your Markdown. It does not add a visible heading or guarantee the saved PDF filename.
- Document language
- en
Sets the document’s language tag, such as en or zh-CN. This does not translate the text. If the tag format is not accepted, the document uses en.
- Paper size
- A4 · Letter
Requests A4 or Letter pages for printing. Check the paper size and scale in the browser’s print dialog before saving or printing.
- Font size (pt)
- 11
Use a whole number from 8 to 24 pt for body text. Leave blank to use 11 pt. Headings scale with the body text; table text stays at 14 px.
- Page margin (mm)
- 18
Use a whole number from 5 to 40 mm. Leave blank to use 18 mm. Check the final margins and page breaks in the browser’s print preview.
Capabilities and limits
- Pasted Markdown can contain up to 1 MiB of UTF-8 text. This is a byte limit; non-ASCII characters may use more than one byte.
- Choose one UTF-8 .md, .markdown or .txt file up to 10 MiB. Keep its full filename within 512 UTF-16 code units; characters such as emoji may count as two.
- Pasted text takes priority, even if it contains only spaces. Selected files are still checked and read. Prepare the preview again after changing the source or settings, then check the browser’s final print layout.
Word to MarkdownConvert DOCX text, links and tables to Markdown, with an asset ZIP for supported embedded images.
Turn the editable main body of a DOCX into Markdown for your documentation or wiki. The converter handles paragraphs, headings, lists, tables and supported links. When supported embedded images are present, it also creates a ZIP containing the Markdown and image files. Check the result against the Word document; page layout is not reproduced.
Steps
- Choose one local .docx file containing the body content you want to convert.
- Select “Convert to Markdown”, then review the Markdown result from beginning to end.
- Copy the complete Markdown or download the .md file. If an image ZIP is available, download and extract it, keeping its Markdown file and asset folder together. Compare headings, lists, links, tables and image references with the original DOCX before using the result.
Capabilities and limits
- Choose one DOCX of up to 20 MiB. Its package can contain at most 2,000 entries and expand to at most 100 MiB. The converter reads the main document body; comments, headers, footers, embedded objects and page layout are not reproduced.
- No package entry may expand to more than 100 times its compressed size. If a document exceeds that limit or its package is damaged, save a simpler DOCX or obtain a clean copy and try again.
- The filename, including its extension, must fit within 512 UTF-16 code units. Rename an overlong file before selecting it. The DOCX must be non-empty and contain main-body content that produces Markdown. To turn text inside scanned images into editable text, use an OCR tool first.