Make a barcode or QR code

A URL or a product code in, a scannable PNG out.

anything: URLs, text, contact details

Type some text or a link, choose a barcode type, and download the code as a PNG image. Nine types are available, from QR codes for links to EAN and UPC codes for retail products. Every code is drawn on a solid white background with a clear margin around it, because a scanner needs both to find the code. No file is uploaded: the text you type is the only input.

How to use it

  1. Type or paste the content in Text or URL.
  2. Choose the Type. QR code is selected to begin with.
  3. Tick Print the value under the code if you want the digits or text shown beneath the bars.
  4. Click Generate the code.
  5. Download the PNG and test it with a phone or a scanner before you print it in quantity.

The nine code types and what each accepts

Each type has its own rules about what it can hold. If your text does not fit the type you chose, no image is made and the message says why, for example that a check digit is wrong.

  • QR code: any text, a link or contact details. The usual choice for something a phone will scan.
  • Code 128: letters, digits and punctuation. General-purpose labelling.
  • Code 39: digits, capital letters, spaces and a few symbols. Lower-case letters are refused.
  • EAN-13: 12 digits, and the 13th check digit is added for you. If you enter all 13, the last one must be correct.
  • EAN-8: 7 digits, or 8 including a correct check digit.
  • UPC-A: 11 digits, or 12 including a correct check digit.
  • Data Matrix: a small square code, used on parts and electronics.
  • PDF417: the stacked code seen on identity cards and shipping labels.
  • Aztec: the square code used on transport tickets.

Why the background is white

A barcode on a transparent background can look correct on screen and still fail to scan, because the empty margin around the bars has no colour for the scanner to read. Each code here is flattened onto white with its margin included. When you place the image in a design, keep that white border and do not crop into it.

Limits to know about

The text can be up to 2000 characters, though a code holding that much becomes dense and hard to scan when printed small. The image comes at one fixed scale, with no size setting on this page; scale it in your layout program when you place it, keeping its proportions.

The output is always a PNG. One code is made per run, so a sheet of different codes means one run for each. A retail code only works at a till if the number has been properly assigned to your product; this tool draws the bars for a number and does not issue numbers.

To check what an existing code contains, use Barcode reader.

Questions

Do the QR codes expire or stop working?

No. The content is written directly into the pattern, so the code keeps working for as long as the text or link in it is valid. Nothing is redirected through a server, which also means the content cannot be changed after printing.

Why does it say my EAN or UPC number cannot be encoded?

The number has the wrong length or a wrong final digit. EAN-13 takes 12 or 13 digits, EAN-8 takes 7 or 8, and UPC-A takes 11 or 12. Leave the last digit off and the correct one is calculated.

Which barcode type should I use?

Use QR for anything a phone will scan, such as a link. Use EAN-13 or UPC-A only for retail product numbers. For internal labels, stock and asset tags, Code 128 holds ordinary text in the least space.

Can I add a logo or change the colours of the QR code?

No. Codes are drawn in black on white with no logo, which is the combination scanners read most reliably.

Can I get the barcode as SVG or PDF?

The tool produces PNG only. To put the code into a PDF, convert the image with PNG to PDF.

Is the text I encode kept?

The text is sent to the server to draw the code, and the finished PNG is held for download and then deleted automatically within one hour.