Text to Markdown

Doubles existing backslashes first, then escapes Markdown-significant punctuation.

Prevent accidental headings, emphasis, or links when embedding user quotes in Markdown. This is an escape pass—not a full Markdown-to-HTML converter.

Text
Escaped

How it works

Backslashes are doubled first; then common Markdown punctuation is prefixed with backslash.

Newlines are unchanged. Add block quotes or code fences in your editor if needed.

Contexts

Escaping rules differ inside code spans, links, and HTML blocks; this is a quick plain-text pass.

XSS

Escaping Markdown is not the same as sanitizing HTML; review before rendering.

Common questions

Convert to headings?
Not automatic. This tool only escapes, it does not structure content.
Tables?
Pipe characters are escaped; build tables manually if needed.
Undo?
Keep your original in the input field or paste again.
GitHub flavor?
Basic punctuation set; GFM extensions may need extra handling.