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.
- Paste or type the text into Input.
- Pick Encode to escape
&,<,>,"and', or Decode to turn entities back into characters. - The result appears in Output as you type — use Copy to take it.
Tips
- Decoding understands named entities (
&), decimal (é) and hex (😀) 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.