Regex Tester Online — Free & Private
Try a JavaScript regex against sample text.
Regex Tester
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.
- Runs user patterns in a disposable worker with a two-second hard timeout.
- Stops collecting output at 100 matches.
- Shows numbered and named capture groups.
- Uses your browser’s JavaScript regex engine and processes text locally.
How to use Regex Tester
Try a JavaScript regex against sample text. Everything runs in this tab — nothing is uploaded for the core job.
- Enter the pattern.
- Paste sample text.
- Test.
- 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 tools
Popular available tools for everyday tasks. Browse categories or search the full catalog.
Star any tool — it appears under Favorites on this device.
Merge PDF
Combine several PDFs into one, in the order you choose.
Split PDF
Cut one PDF into two at a page you pick.
Compress PDF
Shrink file size by re-encoding each page.
PDF to JPG
Export every page as a high-res image.
JPG/PNG to PDF
Turn a stack of photos into one PDF.
Watermark PDF
Stamp a text or image watermark — positioned, tiled, or layered behind content.
Sign PDF
Draw a signature and place it on any page.
OCR PDF
Recognize text in scanned or photographed PDFs, then get a searchable PDF or a plain text file.
Image Compressor
Compress JPG without losing quality — shrink images for the web without uploading.
JSON Formatter
Format, validate and minify JSON, with clear error messages.
EMI Calculator
Calculate the monthly EMI for a loan amount, rate and tenure.
QR Code Generator
Turn text or a URL into a downloadable QR code image.
How this actually works
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.
Questions people actually ask
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