Code Beautifier

HTML Entity Encoder & Decoder

Convert special characters to named, decimal, or hex HTML entities and decode encoded HTML entities back to raw text. · Updated

Options
Conversion Mode:
text
Formatted Outputtext
Draft saved locally.

Options

OptionDescription
Conversion ModeSelect whether to encode special characters into HTML entities or decode entities back into plain characters.

FAQ

Why do I need to encode HTML entities?

HTML reserved characters like `<`, `>`, `&`, and quotes must be encoded to prevent browsers from misinterpreting them as HTML tags or attributes, protecting against XSS and display errors.

What is the difference between named, decimal, and hex entities?

Named entities use mnemonic names (e.g. `&copy;`), decimal entities use ASCII/Unicode numeric values (`&#169;`), and hex entities use hexadecimal values (`&#xA9;`). All render identically in modern browsers.