Guide
How to open a .md file on iPhone
Someone sent you a .md file, or ChatGPT gave you one, and your iPhone shows it as text full of # and ** symbols. Here's how to read it as a proper document without installing anything.
What your iPhone does on its own
A .md file is a Markdown document: plain text where symbols stand for formatting (## for a heading, ** around bold words). Tap one in Files, Mail, or Messages and iOS shows a preview of the raw text, symbols included. It's readable, but tables turn into rows of | and - characters, and it's nothing you'd want to send on. (More on the format: What is a .md file?)
Read it formatted, in Safari
- If the file is in Mail, Messages, or a chat app, save it first: open it, tap the Share button, and choose Save to Files.
- In Safari, open the Markdown Viewer on this site.
- Tap Choose a .md file, then Choose File (or Browse), and pick the file from Files.
- The document appears formatted: headings, bold text, lists, tables, and links.
The file isn't uploaded anywhere. The viewer turns it into a document inside Safari on your phone. Tip: add the page to your Home Screen (Share → Add to Home Screen) so it's one tap away next time.
If you can't pick the file
Some apps don't hand .md files to Safari. In that case, paste the text instead: open the file, press and hold on the text, tap Select All and then Copy. Then paste it into the empty page on the viewer. You get the same formatted document.
Save it as a PDF or Word file
To keep or forward a clean copy, use Markdown to PDF or Markdown to Word. Pick the file (or paste the text) the same way, tap the download button, and the PDF or .docx lands in your Downloads folder in Files, ready to share.
Just want the words, for a text message or an email? Remove Markdown strips the symbols out.
Do I need an app?
Not to read the occasional file; Safari and the viewer are enough. If you edit .md files on your iPhone every day, a dedicated Markdown editor from the App Store will be more comfortable. For reading what someone sent you, the viewer is quicker.