StacckApp

HTML Entity Encoder & Decoder

Free online HTML entity encoder and decoder. Convert <, >, &, ", ' to and from HTML entities. 100% in your browser.

Input

Paste input here, or

Output

About HTML Entity Encoder & Decoder

Paste text to convert characters such as less-than, greater-than, ampersand, and quotation marks into their HTML entity equivalents, or paste entity-laden markup to decode it back to plain characters. Switching direction and copying the result each take a single click.

Encoding runs entirely in your browser, so the snippets you paste stay on your device. Escaping is useful when you need to display code samples on a web page, store user-supplied text safely, or stop a stray angle bracket from breaking your layout.

Frequently asked questions

Which characters get escaped?
The core HTML-significant characters are escaped: less-than, greater-than, ampersand, double quote, and single quote.
Does encoding here prevent XSS?
Escaping these characters helps, but full XSS protection depends on encoding correctly for each context, such as attributes or scripts.
Can it decode numeric entities?
Yes. Both named entities and numeric character references are converted back to their original characters.