Skip to main content
OTYOnlineToolYard

HTML Entity Encoder & Decoder

Convert special characters to HTML entities and back.

Example

Input: <h1 class="title">Hello & "World" — It's © 2024</h1>

Encoded: &lt;h1 class=&quot;title&quot;&gt;Hello &amp; &quot;World&quot; &mdash; It&apos;s &copy; 2024&lt;/h1&gt;

How to Use

  1. Choose Encode to convert special characters to HTML entities, or Decode to reverse it.
  2. Paste your HTML or text into the input area. The tool handles named entities (&amp;, &lt;, etc.) and numeric entities (&#169;, &#x00A9;).
  3. The result appears instantly below. Click Copy to copy it to the clipboard.
  4. Use Clear to reset and start again.

Frequently Asked Questions

Related Tools

Encoding & ConversionBase64 Encoder / Decoder

Encode or decode Base64 strings instantly — client-side, no data sent to any server.

Encoding & ConversionURL Encoder & Decoder

Percent-encode or decode full URLs and individual query-string components — live, client-side.

Encoding & ConversionHex Encoder / Decoder

Convert text to hexadecimal and back — great for debugging binary data.

JSON & DataJSON Encoder & Decoder

Format, validate, and encode/decode JSON with Monaco editor — lenient parsing, local save, all client-side.

Text & StringRemove Spaces

Remove all spaces, extra spaces, tabs, or line breaks from any text — seven modes, instant results.