devpocket.dev

HTML Entities & Unicode

Encode or decode HTML entities and five Unicode escape formats, including astral characters.

Runs locally
Loading tool…

How to use

Choose HTML entities to protect markup-sensitive characters or decode named and numeric references. Pick named, decimal, or hex output; All non-ASCII also converts Unicode text. Choose Unicode escape for JavaScript \u, code-point, byte, CSS, or HTML hex notation. Printable ASCII stays readable unless Escape all is enabled. Decoding recognizes every listed syntax in the same input, including astral-plane characters represented as surrogate pairs.

FAQ

Does it handle emoji and characters above U+FFFF?

Yes. Code-point, CSS and HTML forms use the full value; JavaScript \uXXXX output uses a valid surrogate pair.

Which HTML characters should always be escaped?

At minimum, escape ampersand and angle brackets in text. Quotes and apostrophes also need escaping when used inside matching attribute quotes.

Related tools