HTML Entity Encoder/Decoder
Escape special characters to HTML entities or decode any entity reference back to plain text. Handles & < > " ', non-ASCII characters and numeric references.
How to use the HTML Entity Encoder/Decoder
Paste your text, HTML source or existing entity string into the input box.
Click Encode to turn & < > " ' and non-ASCII characters into entities such as & and €.
Click Decode to turn entities back into characters, then use Copy output to take the result.
Frequently asked questions
What is the difference between encoding and decoding?
Encoding replaces characters that are special in HTML with entity references such as & or <; decoding turns those references back into their original characters. It is a format change, not encryption.
Which HTML entities are supported?
The named entities & < > " ' plus any numeric decimal ({) or hexadecimal (😀) reference. Non-ASCII characters are encoded to decimal numeric references.
Is my text uploaded to a server?
No. Encoding and decoding happen entirely in your browser, so your text never leaves the page.