Encoding
URL Encoder & Decoder
Encode text for URLs or decode percent-encoded values instantly.
Encoding
Encode special characters as HTML entities or decode them back to text.
Encode plain text for safe HTML display or decode entities back into readable characters.
Enter text, HTML markup or encoded entities and choose the required conversion.
HTML entity conversion runs entirely inside your browser. Input values are never uploaded.
About this tool
HTML encoding replaces characters such as angle brackets, ampersands and quotation marks with entity representations. This prevents text from being interpreted as markup when displayed inside HTML documents.
Features
Frequently asked questions
Encoding prevents characters such as angle brackets and ampersands from being interpreted as HTML markup when they should be displayed as plain text.
Context-aware output encoding is an important defense against cross-site scripting, but correct protection depends on where the value is inserted. HTML text, attributes, URLs and JavaScript require different handling.
Yes. The decoder supports decimal entities such as © and hexadecimal entities such as 🚀 through the browser HTML parser.
No. The input is treated as text and is never rendered as active HTML.
Related tools