UUsefulCrate Your files never leave your browser

Home › Tools › HTML Entities

HTML Entities

Two-way conversion between raw characters and HTML entities. Encode angle brackets and ampersands before embedding code samples in a page, or paste in < soup and get readable text back.

100% private — everything runs in your browser, nothing is ever uploaded.

How to use it

  1. Paste your text.
  2. Pick Encode or Decode; both run instantly.
  3. Copy the result from the output box.

Why it stays private

Code snippets often contain exactly the characters that break HTML. Escaping is a string operation performed in your tab — the snippet never leaves your machine.

Questions

Which characters get encoded?

The five XML-critical ones — <, >, &, " and ' — plus non-breaking spaces. That is enough to make any text safe inside an HTML document without bloating it with numeric entities for every accented letter.

Can it decode numeric entities like  ?

Yes. Decimal (&#160;) and hexadecimal (&#xA0;) numeric references and the common named entities are all decoded.

Why did my text turn into Chinese characters?

That is what the entities decoded to. &#20013; is the character 中 — numeric references work for the whole Unicode range.

Related tools

JSON Formatter & Validator

Format, validate and minify JSON with clear error messages.

Base64 Encoder & Decoder

Encode and decode text as Base64, UTF-8 safe.

URL Encoder & Decoder

Percent-encode or decode URLs and query strings.

← All tools