HTML Encoder/Decoder

Encode special characters into HTML entities for safe markup, or decode entities back to readable text.

Type
Input
Result

How to Use

1
Pick a mode

Choose Encode or Decode. In Encode, choose between named (&) or numeric (&) entities.

2
Enter text

Paste or type into the input. Results update live.

3
Copy or swap

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 &#xAC00;?

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.