Skip to main content

HTML Entities Encoder/Decoder

Input

HTML1 lines
1

Encoded

HTML1 lines
1

Decoded

PLAINTEXT1 lines
1

About the HTML Entities

HTML entities encode special characters that would otherwise break HTML parsing — ampersands, angle brackets, quotes, and non-ASCII characters. Encoding prevents XSS attacks and rendering bugs.

Paste text to encode special characters as HTML entities, or paste entities to decode them back to readable text. Supports both named entities (&) and numeric entities (&).

How to use

  1. Paste your text or HTML entities.
  2. Choose encode or decode mode.
  3. The converted result appears instantly.
  4. Copy for use in your HTML templates or documentation.

Frequently Asked Questions

Which characters get encoded? ▾

The five mandatory HTML entities: & < > " and '. Non-ASCII characters like é or 中 can optionally be encoded as numeric entities.

Why do I need to encode ampersands? ▾

An unencoded & could be interpreted as the start of an HTML entity, causing parsing errors. Always encode & as &amp; in HTML content.