← All Tools
HTML Escape🔒 100% local
Convert special characters to HTML entities. Privacy-first, no server uploads.
Related Tools
Runs this site's escape pass over a string and shows you exactly what came back. As shipped, the pass converts a backtick into the numeric reference ` and leaves the other characters where they are, so the Output box is the real effect of the rule table rather than a promise about it. Nothing in the string is transmitted; the replacement happens in the page's own script.
How to use it
- Paste the string you want escaped - a fragment containing a template literal is a good test.
- Press Process.
- Copy the Output box, where each backtick has become `.
Worked example
Use `code` and <b>bold</b>becomesUse `code` and <b>bold</b>Only the backticks moved. The rules for &, <, > and the two quotes substitute each character for itself here, so the tag and the angle brackets survived deliberately.
When to use it
- A backtick in your text is confusing an editor's syntax highlighting before you paste the string into HTML.
- You want to see which characters this site's escape pass actually touches, before trusting it with a template.
- You are comparing two escape passes and need the raw output of this one for the same input.
What it does not do
- It is not a general HTML escaper as shipped: & and the quotes are passed through and the angle brackets are left intact, so the result must not be used for untrusted content.
- References come out in decimal form only - you will not get ` or ` for the same character.
- Text that already contains ` is neither decoded nor double-escaped, since the pass only looks for backticks.
- The pass knows nothing about context. An attribute value, a URL parameter and a JSON string each need different escaping rules.