HTML Entity Encoder / Decoder
Escape special characters to HTML entities and back.
Continue your work
- HTML Formatter — Format markup when you intend to work with HTML tags.
Rate this tool
0.0
0 ratings
- 5 stars 0
- 4 stars 0
- 3 stars 0
- 2 stars 0
- 1 star 0
Share this tool
Found it useful? Send it to a friend or teammate.
Report an issue
Something broken or not quite right? Tell us and we will look into it.
Clear instructions
Find steps, examples and limitations below.
Use online
Open the tool in a supported web browser.
Free to use
No sign-up required. Tool-specific limits may apply.
How to use the HTML Entity Encoder / Decoder
Escape text as HTML entities or decode entities into readable characters.
- 1 Choose Encode or Decode and paste the input.
- 2 Enable Also encode non-ASCII characters if numeric entities are needed for those characters.
- 3 Copy Result or use Swap to reverse the conversion.
Example and practical tips
Encode <b> so the tag can be displayed as text rather than interpreted as markup.
Frequently asked questions
Does this sanitize arbitrary HTML safely?
It is an encoding utility, not a full HTML sanitizer. The correct escaping depends on the output context.
Should I encode text twice?
Usually not. Double encoding can turn an ampersand in an existing entity into another entity. Inspect the result.