HTML Entity Encoder / Decoder
Convert text to HTML entities, or turn entities back into plain characters. Great for code samples and safe inline content.
Frequently asked questions
When should I encode HTML entities?
When you need to display reserved characters like <, > or & in HTML without them being parsed as markup — useful for code samples and user-generated content.
Which characters get encoded?
The five named entities (ampersand, less-than, greater-than, quotes and apostrophe) plus any non-ASCII character becomes a numeric reference, so the output is safe in any encoding.
Is my text uploaded?
No. Encoding and decoding run entirely in your browser.