HTML Entity Encoder/Decoder

Encode special characters to HTML entities or decode entities to characters. Supports named, numeric, and hex entity formats.

How to Use

  1. 1

    Select mode

    Choose Encode to convert special characters to HTML entities, or Decode to convert entities back to characters.

  2. 2

    Enter text

    Paste or type your text into the input field.

  3. 3

    Configure options

    In encode mode, choose between named, numeric, or hex entities, and whether to encode all characters or just special ones.

  4. 4

    Copy result

    The converted output appears automatically. Copy it to use in your HTML.

HTML entities are special codes that represent characters which have meaning in HTML (like < and >) or characters not available on a keyboard. They start with & and end with ; — for example, &lt; represents <.

  • •Escaping user input for safe display
  • •Including special characters in HTML
  • •Displaying code snippets in web pages
  • •Preventing XSS vulnerabilities
  • •Working with legacy character encodings