What is HTML Encoder?
Encoding replaces the five characters that HTML treats specially with entities, so text displays literally instead of becoming markup. Start your input with decode: to convert entities such as < back to characters.
How to use HTML Encoder
- Paste your input into the editor above, or select Sample to load an example.
- Select Encode HTML. If the input cannot be processed, a message explains what to fix.
- Use Copy or Download to take the result with you, and Clear to start again.
Example
Input
<a href="/">Home</a>Output
<a href="/">Home</a>Practical use cases
- Display markup as text
- Prepare documentation examples
- Inspect encoded snippets
Common problems
- Treating entity encoding as complete sanitization
- Double-encoding ampersands
- Decoding untrusted content before rendering
Frequently asked questions
Is HTML Encoder / Decoder free to use?
Yes. HTML Encoder / Decoder is free and does not require an account.
Does my input leave the browser?
No. This tool performs its processing locally in your browser and does not need to upload your input.
