Escape HTML special characters or convert named and numeric entities back into readable text.
Escapes only the five characters that break HTML: & < > " and '.
Encode when you need to show markup as text or put user input safely into a page. Decode when you have entity codes in a file or an export and want to read them.
Minimal covers the five characters that actually break HTML. Named produces readable entities where one exists. Numeric escapes everything outside ASCII for maximum compatibility.
The output updates as you type. Round trips are safe: encoding and then decoding returns exactly what you started with, including Turkish characters.
Ampersand, less than and greater than always. Inside attribute values you also need to escape whichever quote character wraps the attribute. Minimal mode handles all five.
Escaping output is a necessary part of it, but it is not the whole answer. Context matters: text, attributes, URLs and inline scripts each need different handling, and a template engine that escapes by default is safer than escaping by hand.
Named entities such as © are readable but only exist for a limited set of characters. Numeric entities work for every character and are the safer choice for systems with unreliable encoding.
Not if your page is served as UTF-8, which it should be. Escaping them is only useful when something in the pipeline mangles the encoding.
Because a normal space does not need escaping. Only the non-breaking space becomes , which is what you want: encoding every space would change how the text wraps.
No. Both directions run in your browser, so pasted templates and user content stay on your device.
Yes. Decoding accepts common named entities plus any decimal or hexadecimal numeric entity, which covers what you will find in exports and legacy files.
Yes, completely free with no sign-up.
Percent encode and decode URLs and query strings, with a breakdown of every part of the address.
Open ToolIndent messy markup or minify it, with void elements and pre blocks handled correctly.
Open ToolFree online Base64 encoder and decoder. Convert text and data with URL-safe mode and full Unicode support, all in your browser.
Open Tool