🧪 Regex Tester — Free Online

Test JavaScript regex live with flags, match highlighting, capture groups and cheat-sheet. Free online regex tester with friendly errors, no signup.

Your files stay on your device. This tool processes PDFs locally in your browser whenever the tool supports it — no uploads, no account. Privacy policy

Debug patterns against your own text: live matches, capture groups, flags g/i/m/s/u/y, and plain-English error messages.

How to use regex tester

  1. Enter a pattern and toggle flags.
  2. Paste test text.
  3. Inspect highlighted matches and groups.

Features

  • Flags g/i/m/s/u/y toggles
  • Match + group highlighting
  • Friendly syntax errors
  • Cheat-sheet included, local

Privacy

This tool runs entirely in your browser. Your files and text stay on your device — nothing is uploaded, and nothing is sent to analytics. Privacy policy

How this tool is tested

This page is the real tool, not a screenshot: it runs locally in your browser and is verified in current Chrome, Edge, Firefox, and Safari before each release. Your input stays on your device for supported tasks.

By Mccowns.com team · Reviewed

Frequently asked questions

How do I test a regex online?

Enter your pattern (without slashes), pick flags, paste test text — matches and groups highlight live.

Which flavor?

JavaScript (ECMAScript) — the browser’s engine. PCRE-only features like lookbehind limits may differ.

Catastrophic backtracking?

Inputs are length-capped and patterns run synchronously; pathological patterns may still hang the tab briefly — keep test strings small.

Private?

Patterns and text never leave your browser.

Related developer tools