HTML Entity Encoder & Decoder

Web

Encode special characters into HTML entities and decode HTML entities to plain text.

Format:
Raw HTML / Text
Source
UTF-8•100% Local Sandbox
5 lines • 201 Bytes
Escaped HTML Entities
named
UTF-8•100% Local Sandbox
1 line • 0 Bytes

About HTML Entity Encoder & Decoder

An HTML entity is a piece of text that begins with an ampersand (&) and ends with a semicolon (;). Entities are used to display reserved characters (which would otherwise be interpreted as HTML markup) and invisible characters or symbols not found on standard keyboards.

Zero-Upload Privacy Guarantee

Sanitizing HTML snippets and reviewing injection-prone content locally prevents leaking code or copy to third parties.

Client-Side Sandbox● 100% Air-Gapped

Key Capabilities & Features

Named entities, decimal numeric entities, and hex entity options
High-speed DOM-based unescaping and escaping
XSS-safe text escape mode for embedding user input into web templates
Detailed symbol conversion reference

How to use this HTML entity encoder

1

Select Action

Choose 'Encode (Escape)' to convert characters to entities, or 'Decode (Unescape)' to restore text.

2

Choose Entity Style

Pick between Named entities (&, <), Decimal numbers (&), or Hexadecimal (&).

3

Enter Content

Paste HTML snippets or raw text containing special symbols.

4

Copy Safe Output

Copy the sanitized or decoded string.

Frequently Asked Questions

The five essential characters are '&' (&amp;), '<' (&lt;), '>' (&gt;), '"' (&quot;), and ''' (&#39;).