Encode & decode
HTML Entities
Escape and unescape HTML entities safely.
Runs entirely in your browser — nothing is uploaded
Frequently asked questions
Why escape HTML entities?
So text displays literally instead of being parsed as markup — and, in web applications, to prevent injected HTML from running as code.
Which characters are escaped?
The five that matter for markup — <, >, &, single quote, and double quote — plus named entities such as non-breaking spaces.