Files stay on your device Use Regex Tester ↓

Regex Tester Online — Free & Private

Try a JavaScript regex against sample text.

No sign-up required Files stay on your device Works offline once loaded

Loading the tool workspace…

Test a JavaScript regular expression against sample text in a separate Web Worker. Enter a raw pattern or /pattern/flags. Output lists up to 100 matches, their UTF-16 indexes and capture groups. A two-second timeout terminates patterns that get stuck in expensive backtracking so the page remains responsive.

The pattern and sample stay in this tab. They are not uploaded.

Large files and OCR need sufficient device memory; review the downloaded result before using it.

Try a JavaScript regex against sample text. Everything runs in this tab — nothing is uploaded for the core job.

  1. Enter the pattern.
  2. Paste sample text.
  3. Test.
  4. Read match text and index. Only the first 100 matches are listed.

Privacy proof for Regex Tester

This tool processes input in your browser. Open DevTools → Network while you run it to check the requests. Some tools need downloaded libraries on their first use.

Popular available tools for everyday tasks. Browse categories or search the full catalog.

Star any tool — it appears under Favorites on this device.

Available tools process your files and text on your device. Choose the operation you need, check its supported inputs and limits, and keep the original file until you have reviewed the result. PDF compression offers a lossless mode and optional image-based modes; image-based exports lose selectable text. Scanned PDFs need OCR for text extraction. OCR language models may need an initial download. Some catalog operations are still being completed and are clearly marked as unavailable. A current browser and sufficient device memory are required. Optional sign-in stores activity metadata, not your documents.

Which regex flavor?

JavaScript. New syntax and flags depend on your browser.

Why did evaluation stop?

The expression exceeded two seconds. Simplify nested quantifiers or shorten the sample.

What are the input limits?

A pattern up to 2,000 characters and sample text up to 100,000 characters. Output stops after 100 matches.

How are indexes counted?

JavaScript UTF-16 code units. A supplementary Unicode character, such as many emoji, takes two positions.

From our blog: How to Test Regular Expressions Online