This tool escapes regex metacharacters in your text so it can be matched literally inside a regular expression — in your browser.
How to use it
- Paste the literal text to match.
- Special regex characters are escaped.
- Copy the regex-safe pattern.
About Regex Escaper
When you want to match a literal string inside a regular expression, characters like . * + ? ( ) [ ] must be escaped or they take on special meaning. This tool backslash-escapes every regex metacharacter so your text matches exactly as written. It runs entirely in your browser.
FAQ
Which characters are escaped?
All regex metacharacters: . * + ? ^ $ { } ( ) | [ ] and backslash.
Why escape regex input?
So user input or fixed strings match literally instead of acting as a pattern.
Does it build a full regex?
No — it escapes the literal portion; you add anchors or flags as needed.