Skip to content
Marvin's Toolbox.

Search tools

Type to filter all tools

Barcode Generator

Create barcodes in dozens of formats, from EAN-13, UPC-A and Code 128 to QR Code, Data Matrix and PDF417. Type the content, tune the size, colors and text options, and download the result as PNG or SVG.

Everything runs locally in your browser. Your data never leaves your device.

Any ASCII text. The compact general-purpose linear code.

Enter content and the barcode appears here.

Barcode options

3×

Pixels per module. Higher scales export a larger PNG.

12 mm
BarsBackground

Prints the encoded value under the bars.

Next steps

Send this tool's output straight into another tool.

Shrink an SVG with SVGO. Paste the markup or drop a file, toggle every optimizer plugin individually, set the numeric precision and multipass, and compare the size before and after. Copy the result or download it as a file.

Shrink any image with as little quality loss as possible. Pick a WhatsApp, Instagram or Discord preset, or switch to Custom to hit a hard file size or a fixed quality, downscale with aspect-locked resolution sliders, and keep or strip EXIF metadata. Live preview, multiple images at once.

Convert images between JPEG, PNG, WebP and AVIF. Drop in as many as you like, pick a format, and dial in the quality for the lossy ones. When you convert to JPEG, choose the colour that fills any transparency. Live previews, download one or all at once.

See and edit the EXIF metadata inside a photo, then download it with your changes or save a copy with all metadata removed, GPS included. It reads JPEG, PNG, HEIC and more, and edits JPEG files.

Copy the EXIF metadata from one photo onto another without changing the destination's pixels. That covers camera model, lens, focal length, exposure, GPS and more. Choose to replace all metadata or only fill in what the source provides.

Draw arrows, boxes, text, highlights and numbered steps on a screenshot, blur or pixelate anything private, crop the result and add a watermark. Undo works as you expect, and the finished image downloads as PNG or JPG or goes straight to your clipboard.

Hash text or a file with MD5, SHA-1, SHA-256, SHA-512, SHA-3, BLAKE2, BLAKE3, CRC32 and more, all computed live as you type. Compare against an expected checksum and copy any digest.

Verify a checksum online: drop a file, paste the expected checksum and see instantly whether they match. The hash type is detected from the checksum itself, covering MD5, SHA-1, SHA-256, SHA-512, BLAKE3, CRC-32 and more, and sha256sum lines or whole checksum files can be pasted as-is.

Compress text or a file with gzip, deflate, brotli or Zstandard and see the size before and after, the compression ratio and how long it took. One click tries every method and recommends the smallest result.

About the Barcode Generator

This tool renders scannable barcodes in 25 formats, grouped the way they are used: retail codes like EAN-13, UPC-A and ISBN, logistics and industrial codes like Code 128, GS1-128, Code 39 and ITF-14, postal codes like POSTNET and Royal Mail 4-State, and 2D codes like QR Code, Data Matrix, PDF417 and Aztec.

Each format tells you what it accepts, and the content is checked against those rules as you type, with check digits computed for you. The finished code downloads as a PNG or a crisp SVG, or goes straight to your clipboard.

What you can do

  • Generate an EAN-13, EAN-8, UPC-A or UPC-E product barcode with the check digit computed for you.
  • Turn an ISBN into the EAN-13 barcode for a book cover, with or without dashes.
  • Create Code 128, GS1-128, Code 39, ITF-14 or Codabar labels for shipping and inventory.
  • Encode GS1 application identifier strings as GS1-128 or GS1 Data Matrix.
  • Make a QR Code, Data Matrix, PDF417 or Aztec code from any text.
  • Set the scale, bar height, rotation and colors, and toggle the printed text under the bars.
  • Download the barcode as PNG or SVG, or copy it as an image.

How to use the Barcode Generator

  1. 1Pick a format. The search finds it by name or by what it is used for.
  2. 2Type the content, or insert the sample to see what the format expects. Problems are explained before anything renders.
  3. 3Adjust scale, bar height, rotation, colors and the human-readable text if the defaults do not fit.
  4. 4Download the PNG or SVG, or copy the image.

Check digits are handled for you

Retail and carton codes end in a check digit that scanners use to catch misreads. You do not have to compute it: an EAN-13 needs only 12 digits and the correct final digit is added automatically. If you type the full number instead, the tool verifies the last digit and tells you the right one when it does not match, which catches most typos before a label gets printed.

Which format should I use?

For products sold in stores, use EAN-13 worldwide or UPC-A in North America, and ISBN for books. For shipping and internal logistics, Code 128 is the compact default, GS1-128 adds structured application identifiers, and ITF-14 marks trade cartons. When the content is longer than a short number, or the label is small, a 2D code fits better: QR Code for links and general text, Data Matrix for tiny marks on parts and instruments, PDF417 where IDs and boarding passes expect it, and Aztec for tickets.

PNG or SVG?

PNG is the safe choice for documents and the web, and a higher scale exports a larger image. For print, the SVG stays sharp at any size and drops straight into design tools. Run it through the SVG Optimizer if you want it smaller. For QR codes that open an app, like Wi-Fi access, an email or a contact card, the QR Code Generator has dedicated forms.

Turn any image into a complete favicon set: a multi-size favicon.ico, PNG icons in every common size, Apple touch and Android icons, a web manifest and the HTML tags to paste into your page. Download everything as a zip.

Shrink an SVG with SVGO. Paste the markup or drop a file, toggle every optimizer plugin individually, set the numeric precision and multipass, and compare the size before and after. Copy the result or download it as a file.

Enter a resolution to get its simplified aspect ratio, or start from a ratio and one side to get the missing dimension. Knows the common ratios like 16:9, 4:3 and 21:9 and shows how close your size is to each.

See any image the way people with a color vision deficiency see it. Upload a picture and preview protanopia, deuteranopia, tritanopia, the milder anomalous forms and monochromacy next to the original, then download any simulation as a full resolution PNG.

Pull the dominant colors out of any image as a ready-to-copy palette. Choose how many colors you want, copy each one as HEX, RGB or HSL, and export the whole palette at once.

See and edit the EXIF metadata inside a photo, then download it with your changes or save a copy with all metadata removed, GPS included. It reads JPEG, PNG, HEIC and more, and edits JPEG files.