Regex Escape
Convert up to 100,000 characters locally without adding delimiters, anchors, or flags.
Escapes regex metacharacters locally. Maximum 100,000 characters.
Paste plain text to begin.
A QUICK WALKTHROUGH
How to use this tool
- Paste the plain text.
- Escape its regex metacharacters.
- Copy the literal pattern.
Escaped characters
Escapes \, ^, $, ., *, +, ?, (, ), [, ], {, }, |, and /. Letters, spaces, and other punctuation remain unchanged.
Focused local output
The result is a literal fragment, not a complete regular expression. Input is limited to 100,000 characters and stays in the browser.
GOOD TO KNOW
Common questions
Are flags or delimiters added?
No. Add any flags, anchors, or delimiters required by your regex environment.
Is text uploaded?
No. Conversion stays in your browser.