HTML-Entity-Encoder / -Decoder

HTML-Entities kodieren und dekodieren — Sonderzeichen escapen und Nicht-ASCII in numerische Entities umwandeln.

Format
0 chars
0 chars

What is this HTML entity encoder and decoder?

This is a free, browser-based HTML entity encoder and decoder that converts text to and from HTML entities — escaping special characters like &, <, > and quotes, encoding all non-ASCII characters as decimal or hex numeric entities, and decoding named, decimal and hex entities back to their characters — all running locally so nothing is uploaded.

How do I encode or decode HTML entities online without uploading anything?

Paste your text and switch between Encode and Decode. The result appears instantly. Encoding escapes special characters and can optionally turn every non-ASCII character into a numeric entity; decoding turns named, decimal and hex entities back into their characters. Everything runs in your browser.

Key features

Encode and decode in one place
Switch between encoding and decoding with one click and chain conversions by swapping output back into the input.
Named, decimal and hex
Decoding handles named entities (like &amp;, &copy;, &mdash;), decimal numeric entities (&#160;) and hex numeric entities (&#xA0;) equally.
Encode all non-ASCII
Optionally turn every character above U+007F into a numeric entity, useful for safely embedding international text in older HTML or email.
Always-safe specials
Always escapes the five characters that matter most for HTML: &, <, >, " and '.

How to use it

Choose Encode or Decode and paste your text on the left. For encoding, optionally turn on Encode all non-ASCII and pick decimal or hex output. The result updates on the right; copy or download it. Nothing is sent to a server.

Frequently asked questions

Which characters are always encoded?

When encoding, &, <, >, " and ' are always replaced with their HTML entities. The optional non-ASCII switch additionally encodes every character above ASCII as a numeric entity.

Does decoding support named entities like &copy;?

Yes. Decoding goes through the browser's native HTML parser so named, decimal and hex entities are all handled correctly, including ones you didn't write.

Is my text uploaded?

No. Encoding and decoding run entirely in your browser, so even content with personal data or markup stays private.

Built by the Toolbox team using the browser's native HTML parser for safe, exhaustive decoding and standards-aligned escaping rules for encoding, so output matches what HTML5 parsers and email clients expect.