Regex Literal Escaper
Escape text for literal matching in a JavaScript regular expression.
- Free
- No sign-up
- Runs in your browser
- Nothing uploaded
Scope: This produces pattern text only and never evaluates the resulting regular expression.
Workbench
Inputs stay on this page. Press Ctrl or ⌘ + Enter to run.
How to use Regex Literal Escaper
Enter the literal text.
Press “Escape regex metacharacters”.
Copy the result, or download it as escaped-regex.txt.

