๐ Runs in your browser โ nothing is uploadedโ Free, no signup
HTML Entity Encoder & Decoder
Encode characters like &, <, > and quotes as HTML entities so they display as text โ or decode named and numeric entities such as © and 😀 back to characters.
0 characters
Encoded text
When should you use the HTML Entity Encoder / Decoder?
- Showing code or HTML tags as text on a web page
- Reading text full of & and ' from an API or database
- Making special characters safe for HTML attributes and email templates
How to use the HTML Entity Encoder / Decoder
- 1
Choose Encode or Decode
Encode turns characters into entities. Decode turns entities back into characters.
- 2
Paste text
The result appears as you type.
- 3
Handle non-ASCII (optional)
When encoding, choose whether characters like รฉ and ๐ stay as they are or become numeric entities.
- 4
Copy
Copy the result into your HTML or code.
Examples
Encoding HTML so it shows as text
Text
<p>Tom & Jerry's "show"</p>
Encoded
<p>Tom & Jerry's "show"</p>
Common errors and how to fix them
The page shows & instead of &- The text was encoded twice (& became &amp;). Decode it once and the browser will show &.
Some entity wasn't decoded- Check it ends with a semicolon, e.g. © not © โ and names are case-sensitive.
More from Encoding & Security
Free tools that run in your browser โ no signup, nothing uploaded.
JWT Decoder
Decode and inspect JSON Web Tokens (JWT) Header and Payload.
JWT Generator
Create and sign HS256/HS384/HS512 JSON Web Tokens for testing.
Hash Generator (MD5, SHA)
Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes.
Password Generator
Generate strong, random passwords with the length and characters you choose.
Base64 Encoder โ Decoder
Encode text to Base64 and decode Base64 to text for API debugging.
URL Encoder & Decoder
Cleanly encode special characters in URLs and decode query strings.
String Escape & Unescape
Escape or unescape strings for JavaScript, Java, C#, HTML, XML, SQL, CSV and regex.
Number Base Converter
Convert numbers between binary, octal, decimal, hex and any base up to 36.
Text to Hex & Binary Converter
Convert text to hex, binary, ASCII codes or Unicode code points โ and back.
HTML Entity Encoder / Decoder FAQ
Codes that represent characters in HTML, like < for < and & for &. They let you show characters that would otherwise be read as HTML markup.
& and < always in text, and " or ' inside attribute values. > is usually encoded too for safety. Everything else can stay as normal UTF-8 characters.
Yes. Decoding uses the browser's own HTML parser, so all named entities (like é, —, ) and numeric ones (é, é) are supported.
Both are รฉ. é uses the decimal code point and é uses hexadecimal. Browsers understand both.
Encoding text before inserting it into HTML is a key part of preventing cross-site scripting, but use your framework's built-in escaping in real applications.
No. Encoding and decoding happen in your browser, without running any of the HTML.
