QR code extract
Scan an image for the three 1:1:3:1:1 finder patterns, crop the QR square including the quiet zone, and verify the crop with jsQR.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Choose a QR image
The image is processed locally in the browser and never uploaded.
PNG / JPEG / WebP — aim for at least 200 px per side.
Extraction
The crop is verified with jsQR: it only counts as extracted when it decodes.
Pick an image, then press Extract QR code.
What this tool does
- A screenshot where the QR code is tiny and surrounded by clutter: crop just the code before pasting it into a doc.
- Phone photos of QR codes come with lots of background — crop a clean square for re-scanning or printing.
- Normalise a folder of assets by cropping every QR code to the same square.
- Text or watermarks next to a code break other decoders: crop the noise away first.
Example
Input
A 600 × 400 screenshot with the QR code pasted at (150, 70), 4 px modules and a 4-module quiet zone
Output
Three finder patterns found (right angle 90.0°), module size 4.00 px, crop box 148 × 148, and jsQR decodes the crop successfully
The crop size is module size × (module count + 2 × quiet-zone modules); keeping the quiet zone matters, or the decode rate drops sharply.
Frequently asked questions
How are the finder patterns located?
A finder pattern scans as 1:1:3:1:1, seven modules wide. The tool run-length scans every row for black-white-black-white-black runs matching that ratio, re-checks the same ratio vertically, and clusters candidates from adjacent rows into a single centre. Of the three centres, the one whose angle to the others is closest to 90° is the top-left.
How is the crop box computed?
The symbol edge is found by walking 3.5 modules up and left from the top-left finder centre, then the box is expanded by quiet-zone modules × module size. The crop is module size × (module count + 2 × quiet-zone modules). Keeping the quiet zone matters: cropping flush to the code drops the decode rate a lot.
How is the crop verified?
The cropped pixels go straight into jsQR. It only counts as extracted when it actually decodes — not merely "looks like a QR code".
Why are no finder patterns found?
Usual causes: there is no QR code in the image, a corner is cropped off, perspective distortion from a tilted photo, too low a resolution (under 2 px per module), or an inverted code. Only upright, perspective-free images are handled.
Keywords:qrcode extractjsqr1:1:3:1:1