HTML entities and escaping

Encode and decode HTML entities (named, decimal, hexadecimal) and escape or restore text for JavaScript strings, JSON and URL components. Decoding never interprets markup. Everything runs in your browser.

Your data stays on your computer. Files are processed in your browser and are never uploaded.

Line breaks and tabs are left as they are.

HTML entities

The HTML 4 entities (252) and the most common HTML5 names are recognised, plus every numeric reference. Numbers from 128 to 159 are read as in HTML5 (Windows-1252). An entity with an unknown name is left as it is and reported.

JavaScript and JSON

JSON allows only \" \\ \/ \b \f \n \r \t and \uXXXX. JavaScript also has \xXX, \u{…}, \v, \0 and line continuation. The separators U+2028 and U+2029 are always escaped.

Where your data goes

Everything happens on this page: the text is not stored, put in the address or sent. HTML decoding does not use the DOM, so no script or image is ever loaded.

Keyboard shortcuts

In this tool

This tool has no keyboard actions.

Everywhere

Open this panel (outside text fields)
?
Closes panels and menus, never clears data
Esc
Search for a tool
/ or CtrlK

Tool chains

Link several tools into a path: after using a tool, “Send to…” offers the next step first. Saved chains keep only a name and the tools, never your data.

Saved chains

No saved chains.

New chain