Code tool

Regex Escape

Convert up to 100,000 characters locally without adding delimiters, anchors, or flags.

In-browser processingNo account requiredPrivacy details ↗

Escapes regex metacharacters locally. Maximum 100,000 characters.

Paste plain text to begin.

A QUICK WALKTHROUGH

How to use this tool

  1. Paste the plain text.
  2. Escape its regex metacharacters.
  3. 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.