Encoding Tools

HTML Entity Converter

Escape `<`, `&`, and quotes for safe HTML—or decode `&amp;lt;` sequences scraped from pages back to normal characters.

HTML Entity Converter

Encode special characters or decode HTML entities.

Live

Examples

Text or HTML entities
Encoded or decoded result
Input: 0 chars Output: 0 chars Status: ready

Your text stays in your browser — nothing is uploaded.

How to Use

  1. Choose Encode Entities or Decode Entities.
  2. Paste text or entity strings into the input.
  3. Review converted output for ampersands, angle brackets, and quotes.
  4. Swap direction to verify round-trip accuracy.

Example

Raw HTML snippet

<div>"Hello & goodbye"</div>

Encoded entities

&lt;div&gt;&quot;Hello &amp; goodbye&quot;&lt;/div&gt;

Before and After Examples

Encode

Before

Tom & Jerry

After

Tom &amp; Jerry

Decode

Before

&lt;strong&gt;

After

<strong>

Quotes

Before

"hi"

After

&quot;hi&quot;

Numeric

Before

&#169;

After

©

What This Tool Does

HTML Entity Converter transforms reserved markup characters into named or numeric entities during encoding and restores them during decoding. Numeric forms like `&#65;` and hex `&#x41;` decode to Unicode characters, which helps when cleaning CMS exports or preparing documentation examples.

Guidelines

Tip

Escaping user comments before rendering in templates

Practice

Decoding scraped product descriptions with entity soup

Use case

Preparing code samples for technical blog posts

Note

Debugging double-encoding in email templates

Common Uses

Best Practices

Choose Encode Entities or Decode Entities.

Paste text or entity strings into the input.

Review converted output for ampersands, angle b…

Swap direction to verify round-trip accuracy.

Escaping user comments before rendering in temp…

Decoding scraped product descriptions with enti…

Preparing code samples for technical blog posts

Debugging double-encoding in email templates

Popular Workflows

Notes & Limitations

All processing runs locally in your browser. Results may vary with edge-case characters or very large inputs.

Frequently Asked Questions

Which characters get encoded?

At minimum &lt;, &gt;, &amp;, quotes, and often non-ASCII characters depending on context.

Is content uploaded when encoding?

Processing is local; HTML strings never leave your browser.

Does it decode numeric entities?

Yes—decimal and hexadecimal numeric references are supported.

Will encode mode double-escape existing entities?

Ampersands in existing entities are escaped to avoid corrupt sequences.