Escape and unescape HTML characters
Characters like <, >, and & have special meaning in HTML. To show them as text rather than have the browser interpret them as markup, they must be written as entities such as <. This tool converts raw characters into their safe entity form and back again — essential when you want to display code samples or user text without it breaking the page.
How to use it
- Paste your text or HTML.
- Choose encode to make it display-safe, or decode to turn entities back into characters.
- Copy the result into your page or template.
Why it matters
- Showing example code on a web page without it rendering.
- Displaying user-supplied text safely so it can't inject markup.
- Reading content where entities were left encoded.
Questions people ask
Is escaping the same as sanitising? Related but not identical — escaping makes text display literally; sanitising removes dangerous markup. For untrusted input, escaping output is a key defence.
Is my text uploaded? No — conversion runs in your browser.