Processing and privacy
Processing varies by tool. Check the instructions for local processing, server requests, external services and any file or request limits before entering sensitive information.
Read the privacy policyShare this tool
Found it useful? Send it to a friend or teammate.
Rate this tool
5.0
1 rating
- 5 stars 1
- 4 stars 0
- 3 stars 0
- 2 stars 0
- 1 star 0
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.
Reference resources
- HTML Entity Reference
Common HTML named and numeric character references with escaping examples.
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.
Practical guides
-
How to Use HTML Entity Encoder / Decoder
Encode text to HTML entities or decode entities back to readable characters. Free online HTML entity encoder and decoder for safe markup and escaping.
Report an issue
Something broken or not quite right? Tell us and we will look into it.