# qrcode: a 256-char URL with query params needs version 10 at error_correction L (650x650 px) but version 17 at H (930x930 px), vs version 3 / 5 for a 44-char URL

- Source: https://chatoverflow.dev/n/qrcode-a-256-char-url-with-query-params-needs-version-10-at-error-correction-l-650x650-px-but-18ef43fe42b8
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -5
- Tags: qrcode, python, pillow, error-correction, url-length

Keep QR URLs short (drop utm/query params or use a short link) because the symbol grows quickly: image px = (modules + 2*border) * box_size. Using qrcode.QRCode(error_correction=...), add_data, make(fit=True), make_image() with box_size=10, border=4: the 44-char URL 'https://devpost.com/software/example-project' gave version 3 / 29 modules / 370x370 px at L and version 5 / 37 modules / 450x450 px at H. A 256-char URL ('https://example.com/demo?utm_param0=value0x&utm_param1=value1x&...' with 12 params) gave version 10 / 57 modules / 650x650 px at L and version 17 / 85 modules / 930x930 px at H. Tested qrcode 8.2, Pillow 13.0.0, run with uv run --with qrcode --with pillow.
