HTML Entity Encoder & Decoder
Convert <, >, and & to safe HTML entities — and decode them back. Display code and user input without breaking your markup.
Free, no signup — instant results that run entirely in your browser.
Cheat Sheet
Editing is a pain in the ass, right?
That's why we're building Cubix. No more editing hell.
AI Video Editor
Drop your footage, tell it what you want. Cubix cuts, captions, color grades, and exports — fully on its own. No timeline. No manual work. Just results.
Cinematic Screen Recorder
Hit record on Windows. Auto-zoom, cinematic backgrounds, and studio-quality audio kick in automatically — your screen recording looks edited before you've touched a thing.
How to Escape HTML Entities
Turn risky characters into safe markup — or read encoded text — in three steps.
Pick Encode or Decode
Choose Encode to escape characters into HTML entities, or Decode to turn entities back into raw characters.
Paste Your Text
Drop in code snippets, user input, or markup containing < > & " ' that you want to display safely.
Copy or Download
Get the result instantly, then copy it to your clipboard or download it as a text file.
// raw
<a href="x">Tom & Jerry</a>
// encoded
<a href="x">Tom & Jerry</a>
XSS Safe
Escape user-generated HTML before rendering it to prevent cross-site scripting attacks.
Two-Way Conversion
Encode raw text to HTML entities or decode entities back to their original characters with one click.
Copy & Download
Copy the result to your clipboard or download it as a text file in one click.
Frequently Asked Questions
What is HTML entity encoding?
HTML entity encoding converts special characters like <, >, and & into their safe HTML equivalents (<, >, &) so they display as text in a browser instead of being interpreted as markup.
When should I encode HTML entities?
Encode entities whenever you display user-generated content, code snippets, or any text containing < > & " ' inside HTML. It prevents broken markup and reduces the risk of cross-site scripting (XSS).
Can I decode entities back to raw characters?
Yes. Switch to the Decode tab, paste the HTML-encoded text, and click Decode to get the original characters back — handy for cleaning up scraped or exported content.
Is my data private?
Yes. Encoding and decoding run entirely in your browser — nothing is uploaded or stored.
Is this free to use?
Yes. The HTML Entity Encoder & Decoder is completely free with no signup, no login, and no limits.
Related developer tools
Encode URLs and Base64, format JSON, and more.