HTML Entity Encoder / Decoder

Escape HTML special characters or decode named and numeric character references in your browser.

Free No sign-up Runs in your browser
Share this page
WhatsApp Facebook X LinkedIn

Processing stays in your browser. Text input is limited to 1 MB.

Result

Your result will appear here


            

What is HTML Entity Encoder / Decoder?

HTML Entity Encoder / Decoder is a free online developer tool from GigaTools. Escape HTML special characters or decode named and numeric character references in your browser. It runs entirely in your web browser, so nothing is uploaded and it works on any device without installing software.

Common uses

  • Escape ampersands, brackets and quotes in HTML text.
  • Read entity-encoded characters in exported content.

How it works

How to use HTML Entity Encoder / Decoder

Choose encode or decode

Encode plain text for HTML or decode existing named and numeric references.

Paste your text

Optionally encode non-ASCII characters as decimal references. Decoding makes one pass.

Review and copy

Copy the plain output or download it as text. Decoded markup is displayed as text, never executed.

FAQ

Good to know

How do I use HTML Entity Encoder / Decoder?

1. Choose encode or decode: Encode plain text for HTML or decode existing named and numeric references. 2. Paste your text: Optionally encode non-ASCII characters as decimal references. Decoding makes one pass. 3. Review and copy: Copy the plain output or download it as text. Decoded markup is displayed as text, never executed.

Is HTML encoding the same as URL encoding?

No. HTML entities are for HTML text and quoted attributes. Use the URL Encoder / Decoder for URL components.

Does decoding strip HTML tags?

No. It only decodes references. Use HTML to Text Converter to remove markup. Unknown references remain unchanged; numeric references follow browser parsing rules.

Does this make every string safe to use anywhere?

No. Encoding is context-specific. This output is not a sanitizer for HTML, JavaScript, CSS or URL values.