Regex Escaper
Escape any text so it can be safely used inside a regular expression.
Escaped output will appear here...
Escape any text so it can be safely used inside a regular expression.
Escaped output will appear here...
Escape special characters in a string to safely use it as a regex literal. Free, instant, and browser-based. This page is part of UtilsNest's Developer Tools, so you can move between related workflows without leaving the browser.
Browse Category
Explore more tools in Developer Tools to handle adjacent tasks faster.
Open Developer ToolsThese characters have special meaning in regex and need escaping with \: . * + ? ^ $ { } [ ] | ( ) \
When searching for literal dots, brackets, or other special chars in user input, e.g. matching a URL like "example.com" requires escaping the dot.