Escape special characters so a string matches literally in a regular expression, or unescape a pattern back to plain text. Prevents regex injection bugs. 100% client-side.
https:\/\/example\.com\/path\?id=42&q=a\+b \(v1\.0\)
Choose Escape to make a string regex-safe, or Unescape to reverse it.
Type or paste your literal string or escaped pattern.
In escape mode, a badge confirms the pattern matches your input exactly.
Copy the escaped or unescaped result in one click.