FreeFile ToolsRegex Tester: Test JavaScript Patterns
Test JavaScript regular expressions locally with common flags, match indexes and capture groups. Inputs stay in your browser; slow runs stop automatically.
Check a JavaScript regex against sample text, inspect each match and see captured groups without sending your input anywhere.
About this tool
Enter a JavaScript regular-expression pattern and sample text, then choose flags such as global, ignore case, multiline, dot all or Unicode. Matches include their starting index and capture groups.
Evaluation runs in a browser worker so the page stays responsive. Each test has a time limit, output is capped at 100 matches, and very long patterns or text are rejected.
This tool uses JavaScript regular-expression syntax. Pattern and text are evaluated locally and are not uploaded.
How to use Regex Tester
- Enter a pattern and test text
- Choose the flags you need
- Review match positions and captured groups
Supported format
Regular expression and text. File, page and layout limits vary by tool; review the notes on this page before processing.
Good to know
- Global mode returns multiple matches; without it, only the first match is shown.
- Use parentheses to create capture groups and inspect the captured text below each match.
- Complex expressions can take longer to evaluate. Runs stop after 750 ms and display at most 100 matches.
Related tools
Frequently asked questions
Which regular-expression syntax is supported?
The tester uses the JavaScript RegExp engine and its supported syntax.
Which flags can I choose?
Global (g), ignore case (i), multiline (m), dot all (s), and Unicode (u) are available.
Does global mode show all matches?
It shows up to the first 100 matches. Without global mode, only the first match is returned.
Can a complex pattern freeze the page?
Evaluation runs in a separate browser worker and is stopped after 750 ms. Pattern and test-text length are also limited.
Are my pattern or test text uploaded?
No. Regex evaluation happens locally in your browser and does not send the input to a server.
All tools
- Compress PDF — Optimize PDF structure in your browser and download only when the file is measurably smaller.
- Merge PDF — Combine multiple PDFs into one document, in your chosen order.
- PDF Compare — Compare selectable text in two PDFs side by side. Files stay in your browser.
- PDF Form Filler — Fill supported interactive PDF form fields in your browser and download the completed PDF.
- PDF Signer — Add a visible drawn, typed, or image signature to a PDF in your browser.
- PDF Metadata Editor — Read and edit standard PDF document properties locally in your browser.
- PDF Repair — Try a local PDF recovery pass and validate the saved copy in your browser.
- Split PDF — Extract selected pages or page ranges into a new PDF.
- PDF Page Reordering — Reorder pages in a PDF with thumbnails and accessible controls. Processing stays in your browser.
- Delete PDF Pages — Remove selected pages from a PDF in your browser and download the remaining pages.
- Rotate PDF — Rotate every page of a PDF by 90, 180 or 270 degrees in your browser.
- PDF Unlocker — Remove open-password protection from an authorized PDF using its correct password, locally in your browser.
- PDF Password Protector — Add verified AES-256 open-password protection to a PDF locally in your browser.
- PDF Flattener — Flatten supported PDF forms and annotations; PDFs with optional-content layers are rasterized using their default visible state locally.
- PDF Redactor — Permanently cover selected PDF content by rebuilding every page as a flattened image, locally in your browser.
- PowerPoint to PDF — Convert supported PPTX slides to a raster PDF locally in your browser; text is not selectable.
- PDF to PowerPoint — Convert PDF pages locally to images, editable text boxes, and supported editable vector shapes.
- PDF Page Numbers — Add centered page numbers to each PDF page in your browser.
- PDF Watermark — Add a light, diagonal text watermark to every PDF page in your browser.
- PDF to Word — Convert selectable text in a PDF into an editable Word document in your browser.
- Word to PDF — Convert a DOCX document to a page-image PDF in your browser.
- PDF to JPG — Export each PDF page as a high-quality JPG image.
- JPG to PDF — Create a PDF from your JPG images, one image per page.
- PDF to Text — Extract selectable text from PDF documents into a text file.
- PDF OCR — Recognize printed English or Urdu text in scanned PDF pages.
- PDF to Excel — Extract selectable PDF text and estimate columns for simple tables in a downloadable spreadsheet.
- Compress Image — Make JPG, PNG and WebP images smaller with adjustable JPG quality.
- Image Cropper — Select a rectangular area of an image and crop it in your browser.
- QR Code Generator — Create a QR code from text or a URL and download it as a PNG in your browser.
- Barcode Generator — Generate Code 128, Code 39, EAN-13, EAN-8, UPC-A, UPC-E and ITF barcodes locally; download vector SVG or PNG.
- QR Code Scanner — Scan standard QR codes from images or an optional camera locally in your browser.
- Audio Converter — Convert browser-decodable audio files to WAV (16-bit PCM) or MP3 (192 kbps) locally in your browser.
- Audio Cutter — Trim browser-decodable audio to a precise time range and download WAV locally in your browser.
- Resize Image — Resize an image to exact dimensions or preserve its proportions.
- Image Upscaler — Enlarge JPG, PNG and WebP images 2× or 4× with high-quality browser interpolation.
- Image Color Picker — Sample pixels from an image and read accurate HEX and RGB values locally in your browser.
- Favicon Generator — Create downloadable PNG favicon sizes, an ICO file and a web manifest locally in your browser.
- Image to Base64 / Base64 to Image — Convert PNG, JPG and WebP images to Base64 or turn valid Base64 image data into a downloadable file locally.
- Image Metadata Viewer — View image details locally and read supported JPEG EXIF fields such as camera make/model, orientation and dates. PNG/WebP EXIF parsing is not supported.
- SVG to PNG/JPG Converter — Safely rasterize supported SVG files to PNG or JPG in your browser. Files stay on your device.
- Image to Text OCR — Recognize English or Urdu text in PNG, JPEG and WebP images locally in your browser.
- JSON Formatter & Validator — Validate JSON syntax, format it with indentation, or compact it locally in your browser.
- YAML to JSON Converter — Convert supported YAML mappings and sequences to JSON locally in your browser.
- SQL Formatter — Format SQL with a selected dialect locally in your browser. This tool does not validate or execute queries.
- URL Encoder & Decoder — Encode or decode URL components locally, including spaces, reserved characters and Unicode.
- HTML/CSS/JS Minifier — Minify HTML, CSS and JavaScript locally with conservative syntax-aware whitespace handling.
- JWT Decoder — Decode JWT header and payload locally; does not verify signatures or establish trust.
- UUID Generator — Generate one or more secure UUID v4 values locally in your browser.
- WCAG Color Contrast Checker — Check text color contrast against WCAG AA and AAA standards using local HEX color calculations.
- SHA-256 Hash / Checksum Generator — Generate browser-local SHA-256 checksums for files or exact UTF-8 text.
- CSV ↔ JSON Converter — Convert UTF-8 CSV and JSON locally, with quoted-field support and spreadsheet formula protection.
- Regex Tester — Test JavaScript regular expressions locally with flags, match positions and capture groups.
- Text Diff Checker — Compare two text versions line by line and review additions and removals locally in your browser.
- Subtitle Converter — Convert SRT subtitles to WebVTT or WebVTT to SRT locally, preserving cue timing and multiline text.
- XML Formatter & Validator — Validate well-formed XML and format it locally in your browser. DTDs and entity declarations are refused.
- HTML Entity Encoder & Decoder — Encode reserved HTML characters or decode named and numeric entities locally in your browser.
- Markdown Previewer — Write Markdown and preview safe formatted output locally in your browser.
- Password Generator — Generate strong random passwords locally with secure browser cryptography.
- Unix Timestamp Converter — Convert Unix timestamps and dates locally with explicit seconds or milliseconds and timezone labels.
- Text Case Converter — Transform text between common writing and programming cases locally in your browser.
- Image Background Remover — Make a selected image color transparent locally in your browser and download a PNG.
- JPG to PNG — Convert a JPG image into lossless PNG format.
- PNG to JPG — Convert a PNG to JPG with a clean white background.
- WebP to JPG — Turn WebP images into widely supported JPG files.
Enable JavaScript to process files in your browser.