HTML Entity Encode / Decode

Encode and decode HTML entities such as & and ©.

Tool Panel

Processed locally
Loading tool...
About HTML Entity Encode / Decode

HTML entity encoding turns special characters into safe entity references. Encode: turns < > & " into entities Decode: turn entities back into characters Covers 37 common HTML entities

Common HTML entities

These 41 named entities are exactly what the encoder knows; every other character passes through untouched, and anything finer you write yourself as a numeric reference (&#233; or &#xE9;). Decoding is broader — it goes through the browser HTML parser, so all of HTML5’s two thousand-odd named entities resolve.

The five characters you must escape

&amp;&
The ampersand itself (U+0026). Left bare, it starts an entity reference.
&lt;<
Less-than (U+003C). A browser reads a bare one as the start of a tag.
&gt;>
Greater-than (U+003E), the closing half of every tag.
&quot;"
Straight double quote (U+0022) — needed inside a value delimited by double quotes.
&#39;'
Apostrophe (U+0027), written numerically because HTML4 had no &apos;.

Currency, marks and fractions

&copy;©
Copyright sign (U+00A9).
&reg;®
Registered trademark sign (U+00AE).
&euro;€
Euro sign (U+20AC).
&pound;£
Pound sign (U+00A3).
&yen;¥
Yen sign (U+00A5), also the usual symbol for the yuan.
&cent;¢
Cent sign (U+00A2).
&frac12;½
One half (U+00BD).
&frac14;¼
One quarter (U+00BC).
&frac34;¾
Three quarters (U+00BE).

Punctuation and typography

&sect;§
Section sign (U+00A7), used for legal clauses.
&para;
Pilcrow or paragraph mark (U+00B6).
&bull;•
Bullet (U+2022).
&hellip;…
Horizontal ellipsis (U+2026) — one character, not three periods.

Math and measurement

&deg;°
Degree sign (U+00B0).
&plusmn;±
Plus-minus sign (U+00B1).
&times;×
Multiplication sign (U+00D7) — not the letter x.
&divide;÷
Division sign (U+00F7).
&radic;√
Square root (U+221A).
&infin;∞
Infinity (U+221E).
&asymp;≈
Almost equal to (U+2248).
&ne;≠
Not equal to (U+2260).
&le;≤
Less-than or equal to (U+2264).
&ge;≥
Greater-than or equal to (U+2265).

Arrows

&larr;←
Leftwards arrow (U+2190).
&rarr;→
Rightwards arrow (U+2192), the usual one for flows.
&uarr;↑
Upwards arrow (U+2191).
&darr;↓
Downwards arrow (U+2193).
&harr;↔
Left-right arrow (U+2194).

Greek letters

&alpha;α
Greek small letter alpha (U+03B1).
&beta;β
Greek small letter beta (U+03B2).
&gamma;γ
Greek small letter gamma (U+03B3).
&delta;δ
Greek small letter delta (U+03B4).
&epsilon;ε
Greek small letter epsilon (U+03B5).
&pi;π
Greek small letter pi (U+03C0).
&omega;ω
Greek small letter omega (U+03C9).
&Sigma;Σ
Greek capital letter sigma (U+03A3), also the summation sign.
  • 1

    Batch image processing saves time and effort

  • 2

    Support for conversion between multiple data formats

  • 3

    Support for multiple encryption algorithms

Related tools

View all
Encode & Crypto

Base64 Encode / Decode

Encode text to Base64, or decode it back.

Encode & Crypto
Encode & Crypto

Base64URL Encode

Produce URL-safe Base64 without padding characters.

Encode & Crypto
Encode & Crypto

Base32 Encode / Decode

Encode or decode text using the Base32 alphabet.

Encode & Crypto
Encode & Crypto

Base36 Encode / Decode

Encode or decode numbers and text in Base36.

Encode & Crypto
Encode & Crypto

Base58 Encode / Decode

Encode or decode with Base58, the alphabet Bitcoin addresses use.

Encode & Crypto
Encode & Crypto

Binary Encode

Turn text into its 0 and 1 representation.

Encode & Crypto
Encode & Crypto

Binary Decode

Turn a binary string back into readable text.

Encode & Crypto
Encode & Crypto

Hex Encode

Convert text to a hexadecimal string.

Encode & Crypto