HTML Entities Encoder/Decoder
Encode and decode HTML entities with named, decimal, and hex modes.
Quick Insert
Sponsored
Related Tools
Markdown Editor
Write, preview, and export Markdown with live rendering
Regex Tester
Test regex patterns with live matches and groups
Git Commit Generator
Paste a git diff and generate clean conventional commit messages instantly
Email Validator
Validate email addresses, inspect domains, and generate mailto links
Free HTML Entities Encoder and Decoder Online
This free HTML entities tool helps you convert special characters to HTML entities and decode entities back to readable text. It supports named entities, decimal numeric references, and hexadecimal references.
Use it when escaping HTML output, preparing safe snippets, debugging encoded payloads, or decoding copied content from templates and APIs.
What this tool does
- Encode text into named entities like
<and& - Encode text into decimal entities like
< - Encode text into hex entities like
< - Decode mixed entity strings back to plain text
- Preview how encoded output renders in a browser
- Use a clickable reference table of common HTML entities
FAQ
When should I encode HTML entities?
Encode entities when outputting user-generated content into HTML to avoid accidental markup interpretation and reduce XSS risk.
What is the difference between named, decimal, and hex entities?
Named entities use words like &, decimal entities use base-10 numbers like &, and hex entities use base-16 numbers like &. All represent the same character.
Does this tool send my data to a server?
No. All encoding and decoding runs locally in your browser.