Tested tool guide
Tested browser tools
Checked August 16, 2026
What HTML Entity Encoder / Decoder does, with a checked example
Literal ampersands and angle brackets can collide with HTML syntax. This converter has two directions: Encode replaces those characters with HTML character references, while Decode restores references such as `&` and `<` to `&` and `<`. It is useful for preparing a text fragment for HTML source or inspecting text copied from encoded markup. The encoded result is intentionally more verbose than the displayed text. The easy mistake is treating decoding as sanitization. Decoded angle brackets may form tags when the result is later inserted into an HTML document.
Worked example
A concrete input and expected output from the current implementation.
->
Expected output
Fish & Chips
With Encode selected, the literal ampersand is written as the named HTML character reference `&`. The letters and spaces do not require replacement in ordinary HTML text.