How to convert TXT to Markdown
- Drop your TXT file on the box above, or paste its content into the text box.
- Check the settings below the box; the defaults suit most files.
- Press Convert. You see a preview or a summary of the result.
- Download the .md file, or copy the text.
What is kept when you convert TXT to Markdown
- Characters Markdown would treat as formatting (* _ ` # > [ ] | and others) are escaped, so the rendered page shows your text exactly as written.
- Blank lines stay paragraph breaks; single line breaks are kept as hard breaks (a backslash at line end), or joined if you prefer.
- Optionally, lines that already look like list items (“- milk”, “1. eggs”) are kept as real Markdown lists.
Example
A short TXT input and the exact output this tool produces from it:
Input
# not a heading
* not bold *
- milk
- bread Output
\# not a heading\
* not bold \*\
- milk\
- bread
About TXT and Markdown files
A .txt file is plain text: characters and line breaks, with no fonts, sizes or layout. It is what Notepad, TextEdit, code editors and many export buttons produce. It opens in any text editor.
Markdown is plain text with light formatting marks — # for headings, ** for bold, - for list items, backticks for code. README files, notes apps, GitHub and many documentation sites use it. It opens in any text editor, GitHub, Obsidian, Typora, VS Code.
Good to know
- If accented letters show up as é or ?, the text file was saved in an older Windows encoding; this tool reads UTF-8 and falls back to Windows-1252 automatically, so open the result and check one accented word.
- GitHub, GitLab, Obsidian and most wikis render Markdown directly — paste the result rather than attaching the file.
Privacy and limits
The file is read and converted by this page in your browser; there is no upload and no account. Files up to 25 MB are accepted; a file of the wrong type or a damaged file is rejected with the reason.