&

HTML Entity Encoder / Decoder

Convert special characters to HTML entities and back. Supports named (&), numeric (&), and hex (&) formats.

Plain Text
HTML Entities
Common Entities — click to insert
Advertisement
How to use
  1. Choose Encode to turn raw text into HTML-safe entities, or Decode to do the reverse.
  2. Pick the entity format: Named (&), Decimal (&), or Hex (&).
  3. Type or paste into the left pane — the result appears live on the right. Click any reference character below to insert it.
FAQ

The reserved HTML characters &, <, >, ", and ' are always encoded, plus any character above codepoint 127 (non-ASCII). ASCII letters, digits, and punctuation are left alone.

When applied at render time to all user-supplied output, yes — encoding turns injected <script> tags into visible text. Context matters though: strings inside JS, CSS, or URLs need different encodings.

All three represent the ampersand. &amp; is the named entity, &#38; is decimal, and &#x26; is hex. Named entities are most readable; numeric forms work even when a parser does not know the named version.