Text to HTML Entities
Encode special characters as HTML entities (<, >, &) or decode HTML entities back to plain text.
Which characters are converted?
When encoding, the swaps go like this: < → <, > → >, & → &, " → " and ' → '. Decoding just walks the reverse path.
The conversion is done entirely inside your browser.
Encode and decode HTML entities
To show special characters like <, > and & on a page without the browser reading them as code, you need to turn them into HTML entities. This tool does that encoding and the return trip too, decoding entities back into the original characters.
Anyone writing HTML who needs to display code snippets, math signs or symbols without breaking the page will reach for this often. Encoding stops a "<" from becoming an unwanted tag; decoding helps read a text that arrived full of &entities. The conversion goes both ways, as you need.
Paste the content and grab the encoded or decoded version; the processing runs in the browser, with no text sent out.
Related Tools
Tabs ↔ Spaces Converter
Convert tabs to spaces or spaces to tabs. Set the tab size. Processed in the browser.
Markdown ↔ HTML Converter
Convert CommonMark Markdown to semantic HTML and back, with tables, code, footnotes and task lists — all client-side.
Shuffle Text
Shuffle lines, words or characters of a text using a Fisher-Yates shuffle. Useful for raffles, tests and generating random samples. Everything in your browser.