Runs in your browser

Escape / Unescape

Escape or unescape Markdown special characters.

Part of the Markdown Writer bot
Processed in your browser
Drop a text file
Renders as:

About the Markdown Escape Tool

Make asterisks, underscores, hashes and other special characters show literally in Markdown. Escape only where needed to keep the text readable, or escape every special character, and reverse it just as easily.

How to use the Markdown Escape Tool

  1. Choose Escape to make text show literally, or Unescape to remove backslashes.
  2. Paste your text. The result and how it will render update instantly.
  3. Copy the result.

When you need this

Writing *args, 2 * 3 * 4, #hashtag at the start of a line, file names with underscores, or HTML like <div> in Markdown can turn into italics, headings or vanish. Escaping adds a backslash so the characters show exactly as typed.

Only where needed

The default mode escapes characters only where Markdown would treat them as formatting, such as # at the start of a line or 1. that would start a list. That keeps the source readable. Choose “Every special character” for the strictest result.

Questions

Which characters can be escaped?

Any ASCII punctuation: \ ` * _ { } [ ] ( ) # + - . ! | < > ~ and others. A backslash before a letter or number stays as a literal backslash.

Does unescape remove every backslash?

Only backslashes in front of punctuation, which is exactly what Markdown treats as an escape. Other backslashes, like in Windows paths, are kept.

Is my text uploaded?

No. Everything runs in your browser.

Also searched as: escape markdown characters · markdown unescape · escape special characters markdown · markdown backslash escape · markdown special characters