HTML Entity Encoder / Decoder
Escape HTML special characters to entities or decode entities back to readable text.
100% freeNo sign-upInstant resultsWorks on mobile
Loading HTML Entity Encoder / Decoder…
How to use the HTML Entity Encoder / Decoder
- Paste HTML or text.
- Choose encode, encode all non-ASCII, or decode.
- Copy the result.
How it works
Encoding & < > ” ‘ prevents text from being interpreted as HTML, which helps prevent XSS when showing user content.
Why use this html entity encoder / decoder?
- Instant: results update as you type — no page reloads.
- Private: everything runs in your browser; nothing you enter is stored or uploaded.
- Free forever: no sign-up, no limits, works on phone, tablet and desktop.
Frequently asked questions
What is &?
The entity for an ampersand (&).
Why encode HTML?
To display code as text or safely show user input.
Does decoding run scripts?
No, decoding only produces plain text.
Related tools
QR Code GeneratorCreate QR codes for links, Wi-Fi, contacts, email, phone and SMS — custom colors,…
JWT DecoderDecode a JSON Web Token's header and payload and check its expiry — privately…
JSON Formatter & ValidatorBeautify, validate and minify JSON with clear error messages and line numbers.
CSS Gradient GeneratorDesign linear, radial or conic gradients visually and copy ready-to-use CSS.
Password GeneratorCreate strong, random passwords with your choice of length and characters — generated locally…
Base64 Encode / DecodeEncode text to Base64 or decode it back, with full UTF-8 (emoji and accents)…