Generators
By ToolzBank Team•
2 min read
•Saturday, August 16, 2025•Updated Friday, November 13, 2026

How QR Codes Work and How to Generate One for Free

QR codes can encode URLs, text, phone numbers, and more. Here is how they work under the hood and how to create professional-looking ones.

What Is Inside a QR Code?

A QR code (Quick Response code) is a two-dimensional barcode that stores information in a grid of black and white squares. Unlike a traditional barcode that can only be scanned from one direction, a QR code can be scanned from any angle.

If you'd like to follow along, open ToolzBank's free QR code generator in another tab. There's nothing to install and no account to create.

The black and white pattern is not random. It encodes data using a specific algorithm. The three large squares in the corners are called "finder patterns" — they help the scanner orient itself and locate the code. The smaller square near one corner is the "alignment pattern" that helps correct for distortion.

What You Can Encode in a QR Code

  • URLs — the most common use. Scan the code and it opens a webpage.
  • Plain text — any text message.
  • Phone numbers — scanning initiates a call.
  • Email addresses — scanning opens a compose window.
  • Wi-Fi credentials — scanning connects to a network automatically.
  • vCard — contact information that saves to your phone.

How to Generate One

Step 1: Go to an online QR code generator. Step 2: Choose the type of content (URL, text, phone number, etc.). Step 3: Enter your content (paste your URL, type your text, etc.). Step 4: Generate the QR code. Step 5: Download it as a PNG or SVG.

Tips for Professional QR Codes

  • Size matters. A QR code needs to be at least 2.5 cm (1 inch) square when printed to be reliably scanned.
  • Test it. Always scan your QR code with your phone before printing or publishing it. A broken QR code is worse than no QR code.
  • Keep it clean. Do not place anything over the code except in the designated logo area (most codes can have a small logo in the center without breaking functionality).
  • Use high contrast. Black on white is the standard. Colored QR codes work but must maintain strong contrast.