The best QR code format depends on where the code will live. Use SVG for anything that needs to scale — logos, posters, packaging, signage. Use PDF when you are sending artwork to a print shop. Use PNG for websites, emails, documents and slides. JPEG is the one to avoid for codes, and EPS only matters if you are working with older print tools.
This guide explains what those formats actually are, how to pick the right pixel size, and how to sidestep the mistakes that make QR codes blurry or unscannable.
Vector vs raster: the core difference
Every QR code file falls into one of two families: vector or raster.
A raster image is a grid of coloured dots (pixels). PNG and JPEG are raster formats. The image has a fixed number of pixels baked in at the moment you export it. Enlarge it, and the software has to invent new pixels, which is why a small PNG blown up to poster size looks soft and fuzzy.
A vector image is a set of mathematical instructions: draw a square here, fill it black, place it at these coordinates. SVG and EPS are vector formats. Because the shape is described mathematically, the file renders perfectly at any size — a business card or a billboard — with no blur and no jagged edges. Vector files are also typically tiny, since they store instructions rather than millions of pixels.
A QR code is an ideal candidate for vector output. It is nothing but sharp-edged black and white squares. There is no photographic detail to preserve, so vector reproduction is essentially perfect.
PDF is a hybrid container: it can hold vector graphics, raster images, or both. When a QR generator exports a PDF, the code inside is usually vector, which makes PDF a reliable choice for print workflows.
SVG: the default for anything that scales
SVG (Scalable Vector Graphics) is a text-based vector format understood by all modern browsers, most design tools, and most print shops. If you are unsure which format to choose and the code might ever be resized, choose SVG.
When SVG is the right pick
- Logos, flyers, posters, banners — anything that may be reproduced at an unknown size.
- Signage and packaging, where a printer will place the code into a layout at whatever dimensions the design requires.
- Websites, if you embed the SVG directly in the page. It stays crisp on high-resolution ("retina") screens and scales cleanly.
Practical notes
One caveat: SVG is not universally accepted. Some older tools, some office software, and some social platforms will not accept an SVG upload. In those cases, export a PNG at a generous pixel size instead. A reasonable rule of thumb: if a tool opens SVG, use SVG; if it refuses, fall back to a large PNG.
PDF: the format print shops ask for
PDF (Portable Document Format) is the standard hand-off format for professional printing. When you send artwork to a print shop, they will almost always want a PDF.
Why PDF works well for QR codes:
- The code inside is vector, so the printer can scale it to the final size without quality loss.
- PDF supports colour profiles and bleed settings that print workflows expect.
- It embeds everything in one file — nothing gets lost in transit.
If your QR generator offers PDF export, use it whenever a third party is producing the physical item: business cards, stickers, product labels, magazine adverts, menus. Keep the code black on white in the file unless you have confirmed with the printer that a coloured code will still scan; contrast matters far more than colour.
A general note on colour modes: screens use RGB, commercial presses typically use CMYK. Most QR generators export in RGB. For everyday print jobs this is fine — a black square prints as a black square either way. If your printer requests CMYK, their prepress software can usually convert the file, but ask them rather than guessing.
PNG: the workhorse for screens and documents
PNG is a raster format that stores images losslessly — no quality is thrown away when the file is saved. It also supports transparent backgrounds, which matters when you want a QR code to sit on a coloured design without a white box around it.
When PNG is the right pick
- Websites and landing pages, when you want a simple image file rather than inline SVG.
- Emails and messaging apps, where PNG uploads are universally supported.
- Word documents, PowerPoint or Google Slides decks.
- Social media posts.
Getting the size right
Because PNG is fixed-resolution, export it at the size you will actually use, or larger. Two numbers matter:
- Pixel dimensions: the width and height in pixels. For a code displayed at roughly 2–3 cm on a webpage, 300–500 px is comfortable and stays sharp on high-DPI screens. As a rule of thumb, export at least 10 pixels per millimetre of intended display size if you want headroom for zooming and retina screens.
- Print DPI: for print, aim for around 300 DPI at the final physical size. A 5 cm code at 300 DPI needs roughly 600 px. These are rules of thumb, not hard laws — QR codes tolerate a lot, but generous sizes cost nothing.
If you must enlarge an existing PNG, do not simply stretch it in your design tool. Re-export from the original generator at a larger size, or use the SVG version if you still have it.
Transparent backgrounds
PNG supports transparency, so you can export a code with no background and place it over a light-coloured design. Use this carefully: QR scanners rely on contrast. A dark code on a light background is the safe combination. A dark code on a dark or busy background frequently fails to scan.
JPEG: why to avoid it for QR codes
JPEG is a raster format designed for photographs. It achieves small file sizes by discarding detail, and it does this every time the file is saved. On a QR code — hard black edges against white — that compression shows up as fuzzy, greyish "mosquito noise" around every module (the little squares of the code).
Consequences:
- Edges soften, which can push borderline modules into ambiguity for the scanner.
- Repeated re-saving (editing, resizing, re-uploading) compounds the damage.
- JPEG has no transparency, so you always get a solid background.
Sometimes JPEG is unavoidable — some platforms only accept it. If so, export at a high quality setting and a large pixel size, and never re-save the file repeatedly. But given the choice, PNG beats JPEG for QR codes in every scenario.
EPS: only for older print tools
EPS (Encapsulated PostScript) is an older vector format that predates SVG. It still circulates in professional print and sign-making, particularly with older versions of Illustrator, CorelDRAW and some cutting or engraving equipment.
You need EPS only if a printer or tool specifically requests it. Otherwise SVG does the same job with better compatibility across modern software. If you have an EPS and a modern tool will not open it, that is a sign the recipient's workflow is dated — ask whether they accept PDF or SVG instead.
Embedding QR codes in documents and slides
Word
Insert → Pictures, and choose your PNG. Word handles PNG cleanly. Keep the image at "In line with text" or wrap it as needed, and avoid dragging the corner handles to enlarge a small image — that is the classic stretched-PNG mistake. If you need the code bigger, re-export it larger. For a document that will be printed, a 600 px code is a safe size for a code displayed around 5 cm.
PowerPoint and Google Slides
Same approach: insert the PNG, size it once, do not stretch it afterwards. Slides are usually projected or viewed on screens, so a 500–800 px export covers most cases. If your deck will be printed full-page, export larger or use the SVG/PDF route through your design tool instead.
Design tools (Canva, Illustrator, Figma, etc.)
These tools accept SVG, which is ideal — place the SVG, scale freely, and export the final artwork as PDF for print or PNG for screens. This is the cleanest pipeline: vector in, appropriate format out, no quality lost at any step.
A simple decision guide
Match your use case to the format:
- Website or blog: SVG if you can embed it directly; otherwise PNG at 300–500 px for a small display size.
- Email or chat message: PNG.
- Word document or slide deck: PNG, sized correctly at export.
- Business card, flyer, poster, banner: SVG or PDF.
- Stickers, labels, packaging: PDF (or SVG if the printer accepts it).
- Handing off to a professional print shop: PDF.
- Sign-making or engraving with older equipment: EPS, if requested.
- A platform that only accepts JPEG: high-quality JPEG, exported large, saved once.
Two quick rules cover almost everything: vector (SVG/PDF) for anything printed or resized; PNG for anything on a screen or inside an office document.
Common mistakes to avoid
- Stretching a PNG. Enlarging a raster image in Word, PowerPoint or a design tool blurs the modules and can break scanning. Re-export at the right size instead.
- Exporting too small. A 150 px PNG looks fine at thumbnail size but turns to mush when displayed at 5 cm or printed. Export generously; storage is cheap.
- Using JPEG and re-saving it repeatedly. Each save degrades the edges. Use PNG, or save once at high quality if JPEG is forced on you.
- Low contrast. Light-coloured codes on light backgrounds, codes over busy photos, or inverted colours (white code on black) often fail to scan. Dark on light is the reliable default.
- Transparent background on a dark design. The code may be invisible or unreadable. Always test-scan the final placement, on the final background, with a real phone.
- Cropping the quiet zone. The blank margin around a QR code is part of the standard; scanners need it. Never crop tight to the outer modules, and leave at least the equivalent of a few modules of clear space around the code.
- Skipping the test scan. Before printing 5,000 flyers, scan the exported file — and ideally a printed proof — with two or three different phones.
Conclusion
Format choice is simple once you know the split. SVG and PDF are vector: infinitely scalable, ideal for print and any design work. PNG is raster: perfect for screens, documents and slides, as long as you export at the right size. Avoid JPEG for codes, reach for EPS only when a printer asks, and never stretch a PNG — re-export instead. Pick the format that matches the destination, size it generously, keep the contrast high, and test-scan before anything goes to print.