Ready now
HTML Entity Encoder / Decoder
Preparing controls…
About this tool
What HTML Entity Encoder / Decoder does
Escape text as HTML entities or decode named and numeric entities safely as plain text in the browser.
Represent reserved HTML characters as entities, or decode supported named and numeric entities into plain text. Results remain text in this workspace rather than being executed as markup.
Display markup as text
Input or settings
<p>A & B</p>
Expected result
<p>A & B</p>
Mode: Encode entities.
How to use it
- Choose Encode or Decode and paste the source text.
- Choose the entity action and inspect ampersands, brackets and quotes.
- Copy the result into the correct text context; apply destination-specific safety rules before rendering.
Common uses
- Show an HTML snippet as literal text in documentation.
- Recover readable text from entity-encoded source.
Important limitations
- Entity conversion is not a sanitizer for arbitrary HTML, JavaScript, CSS or URL contexts.
- Encoding an already encoded value adds another escaping layer; supported entity names are finite.
Frequently asked questions
Why did & become &amp;?
The encoder treats the existing ampersand as text. Decode only when appropriate and avoid accidental double encoding.
Does decoding make HTML safe to render?
No. Decoding can restore active markup characters. Review and sanitize content for its eventual destination.