HTML Encoder/Decoder
Encode special characters into HTML entities for safe markup, or decode entities back to readable text.
How to Use
Choose Encode or Decode. In Encode, choose between named (&) or numeric (&) entities.
Paste or type into the input. Results update live.
Copy the result with one click, or swap input ↔ output to chain conversions.
FAQ
Named vs numeric entities?
Named (&, <) are easier to read but only some are defined. Numeric (&, <) covers all Unicode and has the broadest compatibility.
Which characters MUST be encoded?
<, >, &, ", ' (five). Failing to encode them can lead to XSS or HTML parsing errors.
Why does Korean become 가?
You have "encode all non-ASCII" turned on. UTF-8 typically leaves CJK characters as-is — turn that option off.
Some entities aren't decoding.
The tool covers the HTML5 named-entity table plus decimal and hex entities. Extremely rare entities may not decode.
Is anything sent to a server?
No. All encoding/decoding runs in your browser; nothing leaves the page.