Markdown preview
Render Markdown headings, lists, tables and code; copy or download sanitized HTML. See supported syntax, removed media and practical preview limitations.
Developer toolsEscape five HTML-special characters or decode named and numeric references. Compare text escaping with sanitization using local examples.
Ready when you are.
Using the default settings. You can try the same input in the workspace.
<h1>Hello & welcome</h1>
<h1>Hello & welcome</h1>
Choose Encode to turn HTML-special characters into text references, or Decode to read named and numeric references. Run the tool and copy or download the plain-text result.
This is text escaping, not an HTML sanitizer, URL validator or JavaScript/CSS escaper. Decoded markup is shown as text, not rendered as a page.
No. Escaping converts special characters to text entities. It does not validate an HTML document or implement an application security policy.
No. This tool processes your input in your browser. We don't store your text, files or results. Standard website access logs are separate; read our privacy notes.
Yes. No account, subscription or usage credits are required.
Use Copy or Download after running the tool. Inputs are not saved automatically and disappear when you leave or refresh the page.
Encode replaces & with &, < with <, > with >, double quotes with " and single quotes with '. Other characters, including café and emoji, remain literal Unicode. It is not a converter that turns every non-ASCII character into a numeric entity.
In Decode mode, & & & all become &. © becomes © and 🌍 becomes 🌍. Decoding follows the browser’s HTML textarea character-reference rules; unknown references can still contain a recognized prefix: ¬arealentity; becomes ¬arealentity; because ¬ is recognized without a semicolon. A reference with no recognized prefix such as &zzunknown; stays unchanged. Use complete references with semicolons rather than depending on forgiving parsing.
Decoding &lt; returns <, not <. Encoding < produces &lt; because its ampersand is escaped again. Already escaped text can therefore become double-escaped. The result of decoding <strong>Hi</strong> is the literal text <strong>Hi</strong>; this workspace does not render it as HTML.
Text escaping helps display characters as text in HTML, but does not decide which elements, attributes or URL schemes an application should allow. Even quoted HTML attributes need context-appropriate handling; a javascript: URL is not made safe by replacing quotes. Do not use this output as a JavaScript or CSS escaper, or as a replacement for a maintained HTML sanitizer. Prefer safe DOM text APIs when displaying untrusted text.
Choose the encoding for your destination: Base64 text representation, URL parameter values or HTML text escaping. These are not interchangeable security controls. Copy the result before switching tools; input is not transferred automatically.
Choose the right developer tools workflow before combining tools.
Something not right? Report a problem with this tool. Include the steps, but never passwords or private input.
Render Markdown headings, lists, tables and code; copy or download sanitized HTML. See supported syntax, removed media and practical preview limitations.
Developer toolsEncode query values with UTF-8 percent encoding or decode URL components. See how spaces, plus signs and double encoding behave locally.
Developer toolsEncode Unicode text as standard Base64 or decode it as UTF-8. Check emoji examples, padding and invalid text locally in your browser.
Developer tools