HTML Entity Encoder and Decoder
Encode and decode HTML entities.
Runs in your browser. Nothing is uploaded — your input is processed on this device and discarded when you close the tab.
HTML Entity Encoder and Decoder
How to use this tool
- Enter your values in the fields above.
- Press Generate to see the result.
- Use Load sample to try the worked example, Copy result to copy it, or Clear to start again.
Worked example
Encoding “<b>Tom & Jerry</b>” gives “<b>Tom & Jerry</b>”. Decoding that string returns the original text.
What this tool does not do / Limits
This handles the common named entities and numeric entities. It does not validate HTML or repair broken markup.
Frequently asked questions
Which characters are encoded?
Ampersand, less-than, greater-than, double quotes and single quotes.
Are numeric entities decoded?
Yes. Both decimal forms like A and hex forms like A are decoded.
Related tools
JSON Studio
Format, validate, minify, query and compare JSON in your browser, with precise line-and-column errors.
LiveRegex Tester
Test patterns against sample text with match highlighting, capture groups and a safe one-second timeout.
LiveSecurity Header and DNS Checker
Check HSTS, CSP and other security headers, TLS details, and DNS/email authentication records (SPF, DKIM, DMARC).
Live