HTML Entity Encoder/Decoder
Encode text to HTML entities or decode HTML entities back to plain text instantly in your browser.
How to use this tool
HTML entities are how you safely represent characters that would otherwise be interpreted as markup — like < and & — or characters outside the basic ASCII set, like accented letters and symbols. Developers use this to escape user-generated content before inserting it into an HTML template (preventing it from breaking the page or enabling injection attacks), or to decode entities they find in a page's source or an API response back into readable text.
For example, <b>Tom & Jerry</b> encodes to <b>Tom & Jerry</b> — safe to display as literal text instead of being rendered as bold markup.
Type or paste your text into the box below, choose Encode or Decode depending on what you want to do, then click Convert. The result replaces the content of the box, so you can toggle the mode and convert again to reverse it.
FAQ
Is this HTML entity encoder/decoder free to use?
Yes, this tool is completely free to use with no limits on how often you can use it.
Does my text get uploaded anywhere?
No. All encoding and decoding happens directly in your browser. Your data never leaves your computer.
What exactly does Encode convert?
Encode escapes the 5 characters that are unsafe to embed directly in HTML markup: & becomes &, < becomes <, > becomes >, " becomes ", and ' becomes '. This is the same escaping browsers expect so that text is displayed literally instead of being interpreted as markup.
What kinds of entities does Decode understand?
Named entities (like & or é) covering the standard HTML4 Latin-1 and special-character sets, plus numeric entities in both decimal (é) and hexadecimal (é) form — which together can represent any Unicode character. Anything that isn't a recognized entity, including a plain "&" in ordinary text like "Tom & Jerry", is left untouched rather than flagged as an error.