25 September, 2026

Data Size Inside a QR Code

Can a QR code contain a photo?

Due to technical limitations, this is not practical because a QR code can only hold under 3 kB of data. So you could store a photo only if it's extremely small like a tiny thumbnail (roughly 60 x 60 px). A JPG of 240 kB could produce a DATA URI scheme with a size of 315 kB:


How can one do so?

If you still choose to proceed, your thumbnail must first be converted to "Base64 format" before inserting it into your QR. Here are the steps to do so:


To convert an image to base64 format.

To decode the data contained in a QR code.