HTML Entity Encode and Decode Free
Converts characters to named HTML entities, such as &, or decodes entities back to the original characters.
About this tool
Decoding handles both named entities (such as &) and numeric character references (such as ' or ').
This tool runs entirely in your browser. Nothing you enter is sent to our server.
When to use it
Useful when you need to show characters such as < or & as literal text on an HTML page instead of having them interpreted as markup, or when cleaning up text copied from an HTML source.
Encoding and decoding
Encoding converts eligible characters, such as & and <, into named HTML entities. Decoding converts entities back to the original characters, whether they're written as a name or as a numeric reference.
FAQ
- What happens if I encode text that contains an HTML tag?
- Symbols such as < and > are converted to entities, so the result can be pasted into an HTML page and shown as literal text instead of being interpreted as a tag.