HTML Entity Encoder and Decoder
Escape the characters that break HTML markup, or decode entities such as & and back into text. Essential when displaying user input safely.
- Runs in your browser
- Accepts: text, HTML
- Produces: HTML, text
- Free · No sign-up
Loading the tool…
How to use html entity encoder and decoder
- Paste the text or markup.
- Choose encode or decode.
- Copy the escaped or decoded text.
Practical examples
Showing code in a page
Encoding "<div>" produces <div>, which renders as text instead of an element.
Limitations to know about
- Encoding makes text safe inside HTML text nodes. Use an attribute-specific escape for values inside attributes.
Privacy
This tool processes everything inside your browser. Nothing you paste or upload is transmitted to Roxie Tools or to any third party, and no copy of your input is stored. Closing the tab clears it.
See the privacy policy for how this site handles data.
Related tools
All developer tools URL Encoder and Decoder Percent-encode query values or decode encoded URLs.
Open tool
Markdown to HTML Converter Convert Markdown into clean, copyable HTML.
Open tool
Base64 Encoder and Decoder Encode text to base64 or decode it back, UTF-8 safe.
Open tool
JSON Formatter and Validator Format, validate and minify JSON with clear error positions.
Open tool
Version 1.0.0 · Last updated 2026-12-06 · Processing: local browser