HTML Entity Encoder & Decoder – Free Online Tool

Convert between HTML entities (&, <, >) and their original characters. Supports named, decimal, and hexadecimal entities.

Try it Free →

Features

🔄

Encode & Decode

Convert characters to HTML entities or convert entities back to readable text.

🔢

Multiple Entity Types

Choose between named entities (&), decimal entities (&), or hexadecimal entities (&).

Real-Time Conversion

Results update instantly as you type or paste. No waiting for server responses.

🔒

Privacy First

All processing is local in your browser. Your text is never transmitted anywhere.

📋

One-Click Copy

Copy the encoded or decoded result to your clipboard with a single click.

📝

Side-by-Side View

See original and converted text simultaneously for easy comparison.

How to Use

1

Choose Mode

Select Encode to convert characters to HTML entities, or Decode to convert entities back to text.

2

Select Entity Type

Choose named entities (&), decimal (&), or hexadecimal (&) based on your needs.

3

Enter Text

Paste or type your text into the input field.

4

Copy Result

Click copy to grab the result to your clipboard for use in HTML code.

Frequently Asked Questions

What are HTML entities?
HTML entities are special codes that represent characters that have special meaning in HTML (like <, >, &) or characters not easily typed (like ©, ®, ™). They start with & and end with ;.
What types of entities does this tool support?
Three types: Named entities (&amp;), Decimal entities (&#38;), and Hexadecimal entities (&#x26;). All are equivalent ways to represent the same character.
When should I use HTML entity encoding?
Use it when inserting special characters into HTML content. For example, displaying '<script>' on a webpage requires encoding it as '&lt;script&gt;'.
What characters are always encoded?
The five required entities: & (&amp;), < (&lt;), > (&gt;), " (&quot;), and ' (&#39; in attributes). Other characters like © (©), ® (®), < (>), etc. are optional.
Is my data sent to a server?
No. All encoding and decoding is done locally in the browser using JavaScript string replacement. Your text never leaves your device.

← Back to pudone! home