How to Strip Markdown Formatting and Get Clean Plain Text

Remove asterisks, hashes, links and code fences from Markdown to get readable plain text for emails, forms and documents, while keeping lists and link URLs.

Updated September 29, 2026 6 min read

Use the free Markdown to TextStrip Markdown formatting to clean plain text, keeping lists and links

Markdown is everywhere now: README files, note-taking apps, documentation sites, chat tools, and the answers produced by AI assistants. It is pleasant to write and looks great when it is rendered. The problem comes when you copy the raw text somewhere that does not understand it. Suddenly your email is full of **asterisks**, your form field starts with ## Heading, and links look like [this](https://...).

This guide explains what Markdown syntax actually is, what should happen to each element when you convert it to plain text, how to convert it in a few clicks, and which alternatives make sense when you want to keep formatting rather than remove it.

What Markdown syntax looks like

Markdown uses ordinary characters as formatting instructions. A renderer reads those instructions and produces formatted output (usually HTML). The most common elements are:

Markdown Meaning
# Title, ## Section Headings, level 1 to 6
**bold**, _italic_, ~~struck~~ Emphasis
[text](https://example.com) Link
![alt text](image.png) Image
- item, 1. item Bulleted and numbered lists
- [x] done Task list item
> quote Blockquote
`code` and fenced blocks with three backticks Inline code and code blocks
Pipes and dashes Tables

Converting to plain text means interpreting these instructions and keeping the content, not just deleting the special characters. A careless search-and-replace for * would also delete multiplication signs and bullet markers you wanted to keep, and deleting brackets would throw away link text.

What should happen to each element

Good plain text reads naturally without any renderer. That means making sensible choices for each element:

  • Headings become ordinary lines, with blank lines around them so they still stand out.
  • Bold, italic and strikethrough keep their words and lose their markers.
  • Links keep their visible text. Whether to keep the URL depends on the destination: in an email body, "see the changelog (https://example.com/changelog)" is useful; in a text for a slide, the URL is clutter.
  • Images cannot appear in plain text, but their alt text often describes them usefully, for example "Team photo".
  • Lists usually keep a marker, because a list without dashes or numbers turns into a run of disconnected lines.
  • Tables become rows with columns separated by tabs, which paste neatly into spreadsheets.
  • Code blocks keep their content exactly, without the fences.

Convert Markdown to plain text step by step

The Markdown to Text converter parses Markdown properly (including GitHub-flavoured features such as tables and task lists) and runs locally in your browser.

  1. Open Markdown to Text and paste your Markdown into the Markdown box. It can come from a README, an AI chat answer, a note app or a blog draft. Click Sample to try an example.
  2. Choose the options:
    • Keep link URLs: off by default. Turn it on to write links as "text (https://...)".
    • Keep list markers: on by default, so items keep their "- " or "1. " prefix. Nested items are indented under their parent.
    • Keep heading #: off by default. Turn it on if you want to see heading levels in the output.
    • Keep image alt text: on by default, replacing each image with its description.
  3. Check the Plain text output. Emphasis markers, code fences and table pipes are gone, and HTML tags inside the Markdown are removed as well. Entities such as & are turned back into characters.
  4. Copy the result or click Download to save it as a .txt file.

Choosing the right conversion for your destination

Plain text is not always the best target. Think about where the text is going:

Destination Best approach
Plain-text email, SMS, form fields, CSV cells Convert to plain text
Rich email, word processor, CMS editor Convert to HTML, then paste the rendered result
PDF to share or print Render Markdown to PDF
Another Markdown-based app Paste the Markdown unchanged

To keep headings, bold text and links as real formatting, use Markdown to HTML, or open the Markdown Preview and copy the rendered view into your word processor. There is a separate explanation of how Markdown converts to HTML if you want to understand the rendering side.

Other ways to remove Markdown

  • Copy from the rendered view. If the text is displayed as rendered Markdown (for example in a documentation site or an app's preview pane), selecting and copying the displayed text usually gives you plain text or rich text rather than the raw syntax. This is the quickest option when a rendered view exists.
  • Pandoc. The command-line converter can turn Markdown into plain text with a command such as pandoc input.md -t plain -o output.txt. It is excellent for batch jobs and scripts, and it handles many Markdown variants.
  • Ask for plain text at the source. If you are copying answers from an AI assistant, many let you request "plain text without Markdown formatting". That avoids the conversion step entirely, though results vary.
  • Regular expressions. Quick patterns can strip ** or #, but they break easily on nested formatting, code blocks containing special characters, and links with parentheses. A real parser is more reliable.

Tips and troubleshooting

Numbered lists restart or renumber

The converter uses the list's own starting number and counts up from there. If the source Markdown restarts numbering because of blank lines or indentation mistakes, fix the structure in the source.

Some asterisks remain

A literal asterisk that is not part of emphasis, such as 5 * 3 or an escaped \*, is content, and it stays. Markdown escapes like \* are turned into the plain character.

Tables look misaligned

Table cells are separated by tab characters, which line up in spreadsheets and code editors but may look uneven in email. For email, consider turning the table into a list, or convert to HTML instead.

Extra spacing between lines

Blocks are separated by a single blank line, and runs of three or more line breaks are reduced. If you need a completely compact result, run the output through Remove Empty Lines.

Converting HTML instead

If your source is a web page or HTML email rather than Markdown, use HTML to Text, which is designed for tags, entities and page structure.

Frequently asked questions

Why is copied AI text full of asterisks?

Many AI chat tools write answers in Markdown so that their interface can render headings and bold text. When the raw text is pasted into an app that does not render Markdown, the formatting characters appear as-is.

The link text is always kept. The URL is removed unless you switch on Keep link URLs, in which case it is added in brackets after the text.

Are code blocks kept?

Yes. The content of inline code and code blocks is kept exactly, and only the backticks and fences around it are removed.

Does it support GitHub-flavoured Markdown?

Yes. Tables, task lists with checkboxes, strikethrough and fenced code blocks are recognised and converted.

Is my Markdown uploaded anywhere?

No. The conversion runs entirely in your browser, so private notes and documentation stay on your device.

Try it now: Markdown to Text

Loading tool…