FA Dev Tools

HTML Encode / Decode

Encode text so special characters (& < > " ') are safe inside HTML, or decode HTML entities — named plus decimal and hex numeric — back to plain text.

Instructions

Converts between plain text and HTML-entity-escaped text.

  1. Paste or type the text into Input.
  2. Pick Encode to escape &, <, >, " and ', or Decode to turn entities back into characters.
  3. The result appears in Output as you type — use Copy to take it.

Tips

  • Decoding understands named entities (&amp;), decimal (&#233;) and hex (&#x1F600;) forms.
  • Encode any user-supplied text before dropping it into markup — that is what stops a stray <script> from running.
  • Hit Example and pick a direction to see it work with no typing.