HTML Entity Encoder / Decoder
Encode special characters to HTML entities or decode them back to text.
About the HTML Entity Encoder/Decoder
Encode special characters to HTML entities and decode them back. Prevent XSS and display special characters safely.
Private by design
Everything you type here is processed inside your browser. Nothing is sent to a server, logged or stored, so it is safe to use with real numbers, drafts and anything you would not paste into a hosted tool.
Try these next
- Website SEO Checker Extract and analyze SEO meta tags from any URL. Check title tags, meta descriptions, Open Graph, and more.
- Private JSON Formatter & Validator - Fast, Client-Side Data Tool Free JSON formatter and validator that runs entirely in your browser. Beautify, validate, and pretty-print JSON with no uploads, no sign-up, and no data leaving your device.
- Base64 Encoder/Decoder Encode and decode Base64 strings in your browser. Handles UTF-8, emoji, and binary safely via TextEncoder. Use for data URIs, JWT inspection, and Basic Auth headers.
- Markdown Previewer Write and preview Markdown in real-time with a side-by-side editor. Supports headings, lists, code blocks, and more.
Browse every tool or read the creator guides.
Questions people ask
What are HTML entities?
HTML entities are special codes that represent characters that have special meaning in HTML, like < (<), > (>), and & (&). They prevent rendering issues and XSS attacks.
When should I use HTML entity encoding?
Use HTML entity encoding when displaying user-generated content in web pages to prevent XSS attacks and ensure special characters render correctly.
Does this tool support named and numeric entities?
Yes. The tool can encode and decode both named entities (like &) and numeric entities (like &).