EasyConvert

HTML Entity Converter

Convert characters into HTML entities and back. In HTML, the characters <, > and & have special meanings — < starts a tag, & starts an entity — so to show them as text on a page you must write them as entities: < for <, > for >, & for &. This tool does the conversion both ways.

Paste text and press Encode or Decode.

How to use this converter

Paste text or code and press 'Encode' to turn <, >, &, quotes and non-ASCII characters into entities, or 'Decode' to turn entities back into characters. Press Copy to copy the result.

Formula

The five essential entities are: < for <, > for >, & for &, " for ", and ' for '. Other characters use numeric entities: © is © or ©, and an Urdu letter can be written as ا.

It is essential when you publish code on a website: paste

into a page without encoding and the browser tries to render it as a real div instead of showing the text. Encoding turns it into <div>, which displays exactly as
. Decoding does the reverse for reading encoded source.

Common HTML entities

FromEquals
<<
>>
&&
""
''
©© or ©
—— or —

Frequently asked questions

What is an HTML entity?

A code that represents a character in HTML, starting with & and ending with ;. < means <, > means >, & means &. Entities let you show characters that HTML would otherwise treat as code.

Why do I need to encode < and >?

Because the browser reads < as the start of a tag. To show the text '

' on a page, you must write '<div>' — otherwise the browser renders a real div.

How do I decode entities?

Paste the encoded text above and press Decode — < becomes <, & becomes &, and so on.

What about quotes?

Double quotes become " and single quotes become '. Encoding quotes matters inside HTML attribute values.

Is my text sent anywhere?

No. Encoding and decoding run entirely in your browser — your text never leaves your device.