Kharabeesh
On-device ع

HTML Entities Encoder / Decoder

Turn special characters into HTML entities (<, &, ©) or decode entities back to plain text, with an option to encode Arabic as numeric references and a searchable table of named entities.

Free, no sign-up Your data stays on your device Works offline after first open

The tool

Loading the tool…

How to use

  1. Choose Encode or Decode.
  2. Paste text or HTML; the result updates as you type.
  3. When encoding, pick a level: Basic is enough to show text safely in a page; “All” turns Arabic and symbols into numeric references.

Privacy & how it works

Processes your data in the browser and stores nothing.

  • Engine: lightweight in-page code, no external libraries.
  • Works offline after you open it once.

Frequently asked questions

When do I need to encode?

When you want to show text containing < or & inside an HTML page without the browser treating it as code, such as code samples on a blog.

Do I need to encode Arabic?

No, modern UTF-8 pages show Arabic directly. “All” is useful for old systems or emails that garble characters.

An entity did not decode. Why?

All numeric entities and the 253 named HTML 4 entities are decoded. Some rare HTML5 names are not in the list, and the tool points them out.

Formulas & sources

Related tools