Mr. Tools

How to

How to generate a QR code

Enter a URL or text and your QR code appears right away. Adjust the size, margin, and colors, then save it as PNG, JPEG, SVG, or WebP. What you enter is never sent anywhere.

QR Code Generator thumbnailQR Code Generator thumbnail
Steps
4 steps
Guide
With screenshots
Content
Notes and FAQ

Use Cases

When to use it

  • Add a URL QR code to printed material
  • Create QR codes for events or stores
  • Share forms or social links with a QR code
  • Save SVG QR codes for web use
  • Place transparent QR codes over designs
  • Compare mask patterns and colors before printing

Capabilities

What this tool can do

  • Generate QR codes from URLs or text
  • Save as PNG or SVG
  • Adjust size, margin, and error correction
  • Choose automatic or manual mask patterns
  • Set foreground and background colors
  • Toggle transparent background

Steps

Steps

The order of operations and checkpoints are listed so you can proceed while looking at the screen.

STEP 1

Enter a URL or text

Type the URL or text you want in the box on the left. The QR code on the right updates as you type.

The URL box outlined in red

Checkpoints

  • The URL has no typos
  • The QR code on the right changed

Where to look on screen

01
URL / text

Enter what the QR code should contain. The clear and copy buttons are at the top right of the box.

The URL box outlined in red
02
Preset

Pick a set of settings for common uses, so you do not have to choose each one.

The preset menu outlined in red

STEP 2

Choose the format and size

Pick a format and size for where you will use the code. PNG suits web pages, and SVG suits printing or large displays.

The format and size settings outlined in red

Checkpoints

  • The format suits where you will use it
  • You left a margin

Where to look on screen

01
Output format

Choose PNG, JPEG, SVG, or WebP. The differences are in the table below.

The output format options outlined in red
02
Size and margin

Size is the dimensions of the saved image. Margin is the empty border around the code, and removing it makes scanning harder.

The size and margin settings outlined in red
03
Error correction and mask pattern

Higher error correction handles dirt and damage better but makes the code denser. You can leave the mask pattern on automatic.

The error correction and mask pattern settings outlined in red

STEP 3

Choose the colors

Pick the foreground and background colors. Turn on Make transparent for a code with no background.

The color settings outlined in red

Checkpoints

  • The code is dark and the background is light
  • A transparent code still scans where you will place it

Where to look on screen

01
Foreground, background, and transparency

Color changes appear on the right right away. Use transparency with a format that supports it, such as PNG, WebP, or SVG.

The color settings outlined in red

STEP 4

Save it

Use the buttons at the top right to copy or save the code. It is saved in the format you chose on the left.

The copy and download buttons outlined in red

Checkpoints

  • It saved in the format you chose
  • The saved code scans correctly

Where to look on screen

01
Copy and download

The left button copies the code, and the right button saves it.

The copy and download buttons outlined in red

Which format should you save?

We saved the same URL (https://example.com/menu) at 512 px in each format and compared the file sizes.

File size and best use by format
FormatSizeBest for
SVG1.3 KBPrinting and large displays. It stays sharp at any size
WebP4.2 KBWeb pages
PNG8.0 KBA safe default that works almost everywhere
JPEG26.0 KBNo transparency. Use it only if other formats are not accepted

QR codes have sharp black and white edges, so JPEG, which is designed for photos, came out the largest.

More text makes the code denser

The more text you add, the more modules (squares) the code has. Printed at the same size, each module gets smaller and harder to scan.

QR code for a short URL with large modules
24-character URL (25 × 25 modules)
QR code for a long URL with small modules
121-character URL (45 × 45 modules)

For small print such as flyers or business cards, keep the URL as short as you can.

How much denser does error correction make it?

Error correction lets a code scan even if part of it is dirty or covered. Higher levels are more robust but add data, which adds modules.

Modules at each error correction level
Error correction24-character URL121-character URL
L low25 × 2541 × 41
M standard25 × 2545 × 45
Q high29 × 2953 × 53
H highest29 × 2961 × 61

Notes

Notes

Important points are grouped with reasons so you can make decisions before using the tool.

Check

Scan it with your phone before sharing

Colors, size, and printing can affect scanning. Test it at the size you will actually use.

Color

Use a dark code on a light background

Low contrast makes codes harder to scan. If you use a transparent background, test it on the final background color.

Content

The content cannot be changed later

If the URL changes, you need a new QR code. Double-check the URL before printing.

FAQ

Questions about QR Code Generator

Questions that make decisions easier before use are summarized first.

Is the input sent outside the browser?

No. QR code generation runs in the browser and the input is not sent externally.

Can I create a QR code from text other than a URL?

Yes. You can create QR codes from short text, notes, or instructions as well as URLs.

Can I save both PNG and SVG?

Yes. PNG is useful for documents and image editing, while SVG is useful for web use and scaling.

Can I make the background transparent?

Yes. Turn on transparency to save a QR code with a transparent background.

Should I change the mask pattern?

Auto is usually best. Change it only when you want to compare the visual result before printing.

Are colored QR codes scannable?

They are easier to scan when the foreground and background have enough contrast. Test with a real device before use.

Next guides

Related guides

Related guides are listed next so you can continue without getting lost.