Home / Regex Tools / Regex Escape Tool
Regex Tools

Regex Escape Tool

Convert arbitrary literal text into a JavaScript-regex-safe literal pattern, with optional slash escaping for /pattern/ notation.

ReadyEscapes JavaScript regex metacharacters so the source text is matched literally; this is not HTML or string-literal escaping.

How to use this Regex Escape Tool

Escape literal text so regex metacharacters match themselves. Enter your values above and the result is calculated directly in your browser. No account is required.

Fast answer, clear inputs

This tool is built around one job: give the answer quickly without forcing a signup or hiding the result. Related tools are linked nearby when the next calculation or conversion is useful.