Learn the official Spanish DNI photo size (32×26mm), requirements, and how to crop and resize your photo at home using free browser-based tools. Save 5-10€ on photo shops.
If you have ever renewed your Spanish DNI (Documento Nacional de Identidad), you know the drill: stand in line at a photo shop, pay between 5 and 10 euros for a set of tiny photos, and hope the result does not make you look like a wanted criminal. But here is the thing — you can take a perfectly valid DNI photo at home and crop it to the exact official dimensions using free online tools. No uploads, no apps to install, and no one else ever sees your photo.
The Dirección General de la Policía sets strict requirements for DNI photos. The official size is 32 millimeters tall by 26 millimeters wide. That is a 32×26mm portrait-orientation photo, which translates to roughly 378×307 pixels at 300 DPI (the standard print resolution). If you are preparing a digital version, aim for at least those pixel dimensions to ensure a sharp print.
This is different from a standard passport photo, which measures 40×30mm. Many people confuse the two, and submitting the wrong size can delay your appointment at the comisaría. So pay attention to which document you are preparing the photo for.
Beyond the dimensions, the Spanish authorities have several rules your photo must follow:
You do not need professional equipment. A modern smartphone camera produces more than enough resolution. Find a spot with even lighting — natural daylight from a window works best. Stand in front of a plain white wall or hang a white sheet behind you. Ask someone to take the photo, or use a tripod with a self-timer. Make sure the camera is at eye level, roughly one meter away.
Avoid direct flash, which creates harsh shadows on the background. If you notice shadows, move a few centimeters away from the wall. Take several shots so you can pick the best one.
Once you have a good photo, you need to crop it to the correct aspect ratio and ensure your face fills the frame properly. Open the crop image tool on SocialShrink and upload your photo. Set the aspect ratio to match the DNI proportions — you want a height-to-width ratio of 32:26, which simplifies to roughly 16:13. Position the crop area so your head is centered and occupies about three quarters of the frame height, with a small margin above your head.
After cropping, use the resize image tool to set the exact pixel dimensions. For a 300 DPI print, resize to 378×307 pixels. Both tools run entirely in your browser — your photo never leaves your device, which matters when you are handling identity document images.
Think about what a DNI photo represents: it is your identity document, tied to your legal name and national ID number. Uploading that image to a random online photo editor means sending your biometric facial data to an unknown server. With SocialShrink, every operation happens locally in your browser using client-side processing. Your files never leave your device. There is no upload, no server-side storage, and no third-party access to your images.
The Spanish passport requires a 40×30mm photo, which is the ICAO international standard. The DNI uses the smaller 32×26mm format. While the face-centering and background rules are similar, the dimensions are not interchangeable. If you are renewing both documents, you will need two different crops from the same source photo. The crop image tool makes this simple — crop once for the DNI ratio, save it, then crop again for the passport ratio.
In most Spanish cities, a set of DNI photos costs between 5 and 10 euros. In tourist areas or near government offices, prices can be even higher. Instant photo booths charge around 5 euros but give you limited control over the result. Doing it yourself costs nothing, and you get to choose the photo where you actually look like yourself.
Getting the right DNI photo size does not require expensive software or a trip to the photographer. With a decent phone camera, good lighting, and free browser-based tools that respect your privacy, you can produce a compliant 32×26mm photo in under five minutes.