CSV formatting issues are the number one cause of bulk QR code generation failures. The good news is that most issues are easy to fix once you know what to look for.
If your CSV upload keeps failing or generating broken QR codes, the problem is almost certainly in the file format. This guide covers the most common CSV formatting issues and their fixes.
Test with a small CSV (5-10 rows) before uploading your full file. This catches formatting issues before wasting time on a large batch.
Common CSV issues
Here are the five most common CSV formatting issues that cause bulk QR code generation to fail:
- Commas in URLs: URLs containing commas break CSV parsing — wrap values in quotes or use semicolons as delimiters
- BOM encoding: Excel adds a BOM character that some generators don't handle — save as UTF-8 without BOM
- Empty rows: Blank rows in the CSV cause empty QR codes — remove them before uploading
- Line breaks in cells: Multi-line cells break CSV parsing — wrap in quotes or remove line breaks
- Wrong column: Make sure the URL/data column is in the expected position
How to fix each issue
Commas in URLs
CSV files use commas as delimiters. If a URL contains a comma, the CSV parser will split it into two columns. Fix: wrap the URL in double quotes: "https://example.com/page,with,commas"
BOM encoding
Excel adds a Byte Order Mark (BOM) character at the beginning of UTF-8 files. Some QR code generators do not handle BOM correctly, causing the first row to fail. Fix: Save as UTF-8 without BOM, or use a text editor like Notepad++ to remove the BOM.
Empty rows
Blank rows in the CSV produce empty or broken QR codes. Fix: Sort by the data column and delete all empty rows before uploading.
Line breaks in cells
Multi-line cells (with line breaks inside a value) break CSV parsing. Fix: Wrap the cell value in double quotes, or remove all line breaks from the data.
Wrong column
If your CSV has multiple columns, make sure the URL/data column is in the position expected by the generator. Fix: Reorder columns or remove unnecessary columns before uploading.
Best practices for CSV preparation
To avoid CSV formatting issues, follow these best practices:
- Use a plain text editor to create or edit CSV files when possible
- If using Excel, save as CSV (Comma delimited) not CSV UTF-8
- Remove all empty rows and columns
- Wrap values containing commas, quotes, or line breaks in double quotes
- Test with 5-10 rows before uploading the full file
- Verify the file opens correctly in a text editor before uploading
QRKit's Bulk QR Code Generator handles most CSV formatting issues automatically, but following these best practices ensures the smoothest experience.