Open a Markdown (.md) File — View, Edit, Save as PDF or Word

See a .md file from an AI chat or GitHub as a readable page with headings and tables. Edit it right here and save it as PDF, Word or HTML. The file is read in your browser and not sent anywhere.

Your files stay safe — processed entirely in your browser. Nothing is uploaded.

Drop a .md or .markdown file here

or click to choose a file

.md, .markdown and .txt. Files in Shift_JIS and other encodings are read too. The file stays on your device.


How to open a .md file

A .md file is Markdown: plain text with marks for headings (#), lists (-), tables (|) and bold (**). GitHub keeps README files in it, and files you get from an AI chat can be .md too. Depending on the version, Notepad shows all those marks just as they are typed.

This page shows it the way it is meant to look, lets you correct it, and saves it as a PDF or a Word file to send to someone. The file is read in your browser; it is not uploaded.

1

Open the .md file

Drop it into the box above, or click to choose it. A .txt with Markdown in it works too, and so does pasting text with "Paste text instead".

2

Read or edit it

"Read" shows the page, "Edit" the text. On a wide screen, "Side by side" shows both: the page follows as you type.

3

Save it

"Save as PDF" opens the print dialog, where you choose "Save as PDF". "Word (.docx)" makes a document with Word's own headings, lists and tables. "HTML" makes one web page, and "Save .md" keeps your edits as Markdown.

The Markdown viewer with made-up meeting notes open: the file name, size and the headings and tables found; the Read, Edit and Side by side buttons; Save as PDF, Word, HTML and Save .md; a blue note that one image from another site is not loaded; and the notes laid out with headings, a bulleted list and a table.
Screenshot Made-up meeting notes in this viewer. The remote image waits for "Load images".

Images from other websites are not loaded until you press "Load images": loading them would tell those sites that the document was opened, and from where.

How this viewer works

Markdown is turned into HTML in your browser, the HTML is cleaned of anything that could run or load from the network, and the result is shown in a separate frame that cannot run scripts.

Reading Markdown
The text is parsed by marked 18.1.0 with GitHub Flavored Markdown (tables, task lists, strikethrough, bare links). The encoding is detected as on the rest of this site, so a file saved in Shift_JIS reads correctly. Headings get the same anchors as on GitHub, so a table of contents in the file works. marked license (MIT)
Nothing loads by itself
HTML written into a .md file is filtered with DOMPurify: scripts, styles, forms, frames and embedded media are removed. The frame that shows the document has no permission to run scripts, and its content security policy allows only images carried inside the file, until you choose to load the others.
PDF and Word
The PDF comes from your browser's print dialog, so the text stays selectable and searchable. The Word file is built here from the Markdown itself: headings use Word's Heading 1–6 styles, lists are real numbered and bulleted lists, tables have borders and a repeating header row, and code keeps its line breaks in a monospace font.

Limits

Footnotes, math ($…$) and Mermaid diagrams are not drawn. Images next to the file are not shown, and in the Word file images from other sites become a line of text with their address. The Word file has been checked by reading its parts back, not in Microsoft Word itself, so how it looks there is not confirmed. In the Word file, a table inside a quote or a list is not indented with it. Files over 2 MB, and quotes or lists nested more than 100 levels deep, are not opened.

Frequently asked questions

Is my file uploaded?
No. The file is read by a program running in your browser, and the PDF, Word and HTML files are made there too. It is not sent to this site or anywhere else.
What is a .md file?
A text file written in Markdown, a way of marking headings, lists, links and tables with plain characters. A plain text editor shows the marks as they are; a Markdown viewer such as this page shows the page they describe.
Why are some images not shown?
Images from other websites are held back until you press "Load images", because fetching them tells those sites your IP address and that the document was opened. Images given as a path next to the .md file (images/photo.png) cannot be shown, because the page only has the one file you opened. Images inside the file (data: URLs) always show.
Does it look the same as on GitHub?
Mostly: tables, task lists, strikethrough and links are GitHub's. One difference is on purpose: a single line break is shown as a line break, where GitHub joins the lines. Japanese and Chinese have no spaces between words, so joining lines would put gaps in the middle of sentences. Footnotes, math and Mermaid diagrams are shown as written, not drawn.
Is there a size limit?
Files up to 2 MB. For a large document the view is not redrawn on every keystroke; press "Update the view" after editing.

Garbled text, contacts and text files

Other tools for the same situation

More for this situation →