HTML entity encoder & decoder
Encode HTML special characters or decode named and numeric entities as text. Handle quotes, ampersands and Unicode locally. Free, no signup.
Keep your text from turning into markup.
Prepare text for an HTML example or read an entity-encoded snippet. The output stays text so you can inspect it before putting it into the correct context.
Free to use. No signup. Output: Escaped HTML text.
How to use HTML entity encoder & decoder
- Choose encoding or entity decoding.
- Paste the text or semicolon-terminated entities.
- Convert and copy the output as text.
Worked example: Escape a short markup example
This escapes HTML text and quoted attribute characters. JavaScript, CSS and URL contexts have their own escaping rules.
- Example input
Action: Encode special characters Text: <strong>Build & ship</strong>
- Expected output
<strong>Build & ship</strong>

Questions, answered
Which characters are encoded?
Ampersands, less-than and greater-than signs, double quotes and apostrophes are escaped. Other Unicode characters remain readable.
Does decoding sanitize unsafe HTML?
No. Decoding converts semicolon-terminated named and numeric entities in one pass. It is not an HTML sanitizer, and decoded output can still contain markup. The tool displays text and accepts up to 100,000 characters.
Keep building
Ready for feedback on your project?
Share what you are building with the VibeCodingList community.