Encoding and Hashes

String Escaper for JS, PHP, SQL, and HTML

Paste a string and see it escaped for JavaScript, JSON, PHP, SQL, HTML attributes, URLs, and regular expressions. Every variant copies with one click.

Runs in your browser — data is not sent to a server

Each variant is shown together with its quotes — paste it as is. Standard SQL doubles the single quote; MySQL additionally escapes the backslash (shown on a separate line).

Need data for your project rather than utilities?

We'll collect and tidy up website data: prices, products, contacts, reviews — in the format and at the frequency you need.