HTML Entity Encoder & Decoder
Convert special characters to HTML entities (&, <, etc.) and back. Useful for safely embedding text in HTML.
What is HTML Entity Encoder & Decoder?
HTML entities are escape sequences that represent characters with special meaning in HTML — & for &, < for <, etc. If you embed user-provided text directly into HTML without encoding, you create XSS vulnerabilities. This tool converts text to entity-encoded HTML for safe embedding, or decodes entity-encoded HTML back to plain text.
Frequently asked questions
Which characters must I encode?▼
Should I encode all entities or just unsafe ones?▼
Related tools
JWT Decoder
Decode JSON Web Tokens (JWT) instantly — inspect the header, payload, and signature claims. Runs entirely in your browser; tokens never leave your device. Safe for production secrets.
JSON Formatter & Validator
Format, validate, and minify JSON instantly. Catches syntax errors with line numbers, pretty-prints with adjustable indent, supports large payloads. Runs in your browser — no upload.
XML Formatter & Beautifier
Format and beautify XML documents — proper indentation, line breaks, namespace handling. Useful for SOAP responses, sitemaps, RSS feeds, and Android resource files.
Base64 Encoder & Decoder
Encode and decode Base64 strings.
URL Encoder & Decoder
Encode/decode URL-safe strings.
CSS Minifier
Minify CSS to reduce file size.