Escape and unescape HTML entities like & and <.
Loading HTML Entities…
How to use HTML Entities
Open the HTML Entities tool.
Paste or type your text, code or a token into the input field.
The output updates as you type. Adjust the options if you need a different format.
Copy the result, or share the URL to hand the exact input to someone else.
About HTML Entities
Escape and unescape HTML entities. Encoding converts &, <, >, " and ' into their safe entity forms (with an option to also escape every non-ASCII character); decoding turns entities back into literal characters using the browser's own parser.
What people use it for
Safely display code or markup as text inside a web page.
Decode entity-encoded content copied from HTML source.
Escape user input before injecting it into a template.
Frequently asked questions
Which characters get escaped?
The five HTML-significant characters &, <, >, double-quote and single-quote, with an optional pass that also escapes non-ASCII as numeric entities.
Is it private?
Every calculation happens on this page, in your own browser. Your input is never sent to a server and never logged, which also means the tool keeps working when you are offline.