EncodeIn browser

HTML entities

A local HTML entities encoder/decoder for markup, templates, CMS fields and test HTML snippets. Escape unsafe characters or decode named and numeric entities in your browser.

Use cases
HTML templatesCMS snippetsXML/markupEscaping
Mode:
Source text
Characters: 0Lines: 0Entities: 0
Result

How it works

Encode replaces HTML-significant characters &, <, >, quotes, apostrophe and backtick with entities so text can be inserted into markup safely. Decode uses the browser HTML parser through a textarea, so it understands named entities such as `&amp;`, decimal numeric such as `&#169;` and hexadecimal numeric such as `&#xA9;`.

When to use it

Use it for HTML templates, CMS snippets, XML/markup fragments, email markup and test payloads when you need to quickly inspect the escaped or decoded version of a string.

How to use it

  1. 1Paste text or a string with HTML entities into the editor.
  2. 2Choose Encode to escape HTML characters or Decode to get plain text back.
  3. 3Optionally encode non-ASCII characters as numeric entities.
  4. 4Copy the result or swap input and output.

Questions

Is the text sent to a server?

No. HTML entity encoding and decoding runs locally in your browser.

Which entities are supported during decode?

Decode uses the browser HTML parser, so it supports named entities such as `&amp;` and `&copy;`, decimal numeric entities such as `&#169;` and hexadecimal numeric entities such as `&#xA9;` where the current browser supports them.

Does Encode turn all Unicode into entities?

By default it encodes HTML-sensitive characters: &, <, >, quotes, apostrophe and backtick. You can enable numeric encoding for Cyrillic, emoji and other non-ASCII characters separately.

Other tools

All tools