HTML Encode / Decode

Encode or decode HTML entities. Convert special characters like & < > " ' to their HTML entity equivalents and back.

Chars: 0 Words: 0 Lines: 0

About the HTML Encode / Decode

Our free HTML encoder/decoder converts special characters to their HTML entity equivalents and back. Encode text for safe embedding in HTML or decode HTML entities back to readable characters. Handles all standard HTML entities including &amp; &lt; &gt; &quot; &#39; and all named entities. Perfect for preparing content for web pages, escaping user input, or cleaning up HTML source code.

Features

  • Encode special characters to HTML entities
  • Decode HTML entities back to readable text
  • Handles &, <, >, ", ', and all named entities
  • Real-time conversion as you type
  • Copy encoded/decoded text to clipboard
  • 100% private — browser-only processing

How to use this tool

The HTML Encode / Decode works right in your browser — no signup, no installation. Follow these steps:

  1. Type or paste text to encode it to HTML entities.
  2. Paste HTML-encoded text to decode it back to characters.
  3. Both directions work instantly as you type.
  4. Click Copy to save the result.

Frequently asked questions

What are HTML entities?

HTML entities are special codes that represent characters with special meaning in HTML. For example, < is written as &lt; and & is written as &amp;. They ensure browsers display the character correctly rather than interpreting it as HTML code.

Which characters need encoding?

The five most important characters to encode in HTML are: & (&amp;), < (&lt;), > (&gt;), " (&quot;), and ' (&#39;). Encoding prevents HTML injection and ensures proper display.

Using the results

Use the HTML Encode / Decode to transform supported text or data formats in your browser. Review the output before replacing your original, since some conversions change formatting or discard information.

Related Free Online Tools