HTML entities
A local HTML entities encoder/decoder for markup, templates, CMS fields and test HTML snippets. Escape unsafe characters or decode named and numeric entities in your browser.
How it works
Encode replaces HTML-significant characters &, <, >, quotes, apostrophe and backtick with entities so text can be inserted into markup safely. Decode uses the browser HTML parser through a textarea, so it understands named entities such as `&amp;`, decimal numeric such as `&#169;` and hexadecimal numeric such as `&#xA9;`.
When to use it
Use it for HTML templates, CMS snippets, XML/markup fragments, email markup and test payloads when you need to quickly inspect the escaped or decoded version of a string.
How to use it
- 1Paste text or a string with HTML entities into the editor.
- 2Choose Encode to escape HTML characters or Decode to get plain text back.
- 3Optionally encode non-ASCII characters as numeric entities.
- 4Copy the result or swap input and output.
Questions
Is the text sent to a server?
No. HTML entity encoding and decoding runs locally in your browser.
Which entities are supported during decode?
Decode uses the browser HTML parser, so it supports named entities such as `&amp;` and `&copy;`, decimal numeric entities such as `&#169;` and hexadecimal numeric entities such as `&#xA9;` where the current browser supports them.
Does Encode turn all Unicode into entities?
By default it encodes HTML-sensitive characters: &, <, >, quotes, apostrophe and backtick. You can enable numeric encoding for Cyrillic, emoji and other non-ASCII characters separately.