HTML Entity Encoder
Encode special characters to HTML entities or decode them back online for free. Named, numeric, and hex entities supported. No signup.
Runs entirely in your browser — files never uploaded
How to use HTML Entity Encoder
- 1. Choose a mode. Select Encode to convert special characters to HTML entities, or Decode to convert entities back to text.
- 2. Enter your text. Type or paste your content in the input box. The conversion happens live as you type.
- 3. Copy the result. Click the Copy button to copy the converted output to your clipboard.
FAQ
What characters are encoded?
By default, the five XML special characters are encoded: < > & " and '. When the "Encode all non-ASCII" option is checked, characters like ©, ®, ™, emoji, and accented letters are also converted to numeric entities.
What entity formats are decoded?
The decoder handles named entities (&, <, >, ", ', , ©, etc.), decimal numeric entities (©), and hexadecimal entities (©).
Is my text uploaded to a server?
No. All encoding and decoding happens entirely in your browser. Nothing is sent anywhere.
Why would I need to encode HTML entities?
When displaying user-generated content in HTML, encoding prevents XSS attacks and ensures special characters render correctly instead of being interpreted as HTML tags.
Does it support emoji and Unicode?
Yes. With the non-ASCII option enabled, any Unicode character (including emoji) is converted to a numeric entity like 😀.
Related tools
- Base64 EncoderEncode text or files to Base64 or decode Base64 back online for free. Instant conversion, no signup, runs in your browser.
- JSON FormatterFormat and validate JSON online for free. Beautify with indentation, validate syntax, or minify. Runs in your browser, no signup.
- CSV ↔ JSONConvert CSV to JSON or JSON to CSV online for free. Live preview as you type or upload a file. No signup, runs in browser.
- Timestamp ConverterConvert Unix timestamps to dates and dates to timestamps online for free. Supports seconds, milliseconds, ISO 8601. No signup.
- JWT DecoderDecode JWT tokens online for free. Inspect header, payload, and claims. Verify expiration and signature algorithm. No signup, runs in browser.
- Regex TesterTest regular expressions online for free with live match highlighting, capture groups, and flag toggles. Supports JavaScript regex. No signup.