PufferKit
HomeDeveloperRegex Tester
Default
India11
East Asia3
Other Countries3
Buy me a coffee

Regex Tester

Test patterns against text, inspect captures and preview replacements.

Highlighted text
Mail team@example.test or help@example.org. Ref 2026-03-14.
Pattern library
Cheatsheet
\d / \w / \s
Digit, word character, whitespace
^ / $
Start and end anchors
(…) / (?<name>…)
Numbered or named capture
* / + / ?
Zero or more, one or more, optional

Processing locally…

Your input is processed locally in this browser tab.

How to use Regex Tester

  1. Type a regular expression pattern and toggle any combination of g, i, m, s, u, and y flags.

  2. Paste or open a text file up to 128 KiB to see highlighted matches, byte offsets, and numbered or named capture groups.

  3. Enable Replace to preview substitutions using $1, $2, or $<name> backreferences without modifying your source file.

Frequently asked questions

Does the regex run in a background worker?

Yes. Pattern evaluation runs locally inside a Web Worker with a safety timeout so slow backtracking patterns cannot freeze your tab.

Which capture syntax does Replacement support?

Standard JavaScript String.prototype.replace syntax including $&, $1..$99, and named groups $<name>.

A LITTLE SUPPORT GOES A LONG WAY

Enjoying PufferKit?

If these tools made your day a little easier, you can buy me a coffee and support what I’m building.

Support
With or without a coffee, you’re always welcome here.

Processing locally

File and data operations run locally inside this browser tab. Static assets such as fonts and qpdf.wasm load from this site origin, while PufferKit never uploads your files or tracks usage. HTTP client tools send requests to endpoints you choose. Preferences and saved drafts stay in this browser’s storage until you clear them.

How it works →

Find a tool

Compress Image to KBImagesImage ConverterImagesImage ResizerImagesImage CropperImagesImage RotatorImagesImage DimensionsImagesImage ViewerImagesImage FlipperImagesImage MetadataImages · SecurityRemove MetadataImages · SecurityImage OptimizerImagesImage to Base64Images · DeveloperSVG to PNGImages · DesignJPG to PNGImagesPNG to JPGImagesJPG to WebPImagesPNG to WebPImagesWebP to JPGImagesWebP to PNGImagesAVIF to JPGImagesAVIF to PNGImagesBMP to PNGImagesImage FiltersImagesImage EffectsImagesPixelate ImageImagesBlur ImageImagesSharpen ImageImagesAdjust BrightnessImagesAdjust ContrastImagesAdjust SaturationImages