Blog
Image

Spanish DNI Photo Size Online: Get the Exact Dimensions for Free

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.

2026-07-016 min

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.

What Is the Official Spanish DNI Photo Size?

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.

Full List of Spanish DNI Photo Requirements

Beyond the dimensions, the Spanish authorities have several rules your photo must follow:

  • Size: 32mm tall × 26mm wide
  • Background: plain white or very light gray, no patterns or shadows
  • Face position: centered, looking straight at the camera, with a neutral expression
  • Head coverage: your face must occupy between 70% and 80% of the frame height
  • No sunglasses, tinted lenses, or hats (religious head coverings may be permitted)
  • The photo must be recent — taken within the last six months
  • Color photo with natural skin tones, no filters
  • Sharp focus, no visible pixelation or compression artifacts

How to Take a DNI Photo at Home

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.

How Do I Crop My Photo to 32×26mm?

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.

Why Privacy Matters for ID Photos

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.

DNI Photo vs. Passport Photo: What Is the Difference?

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.

How Much Do Photo Shops Charge for DNI Photos?

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.

Step-by-Step Summary

  1. Take your photo against a white background with even lighting and a neutral expression
  2. Transfer the image to your computer or open it directly on your phone
  3. Use the crop image tool to crop to the 32:26 (height:width) aspect ratio with your face centered
  4. Use the resize image tool to set dimensions to 378×307 pixels at 300 DPI
  5. Save the result and print at home or at a print shop — typically under 0.50€ for a color print
  6. Bring two identical copies to your DNI appointment

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.

SocialShrink
Independent studio · Barcelona
Privacy-first creator tools. Compress, convert and adapt your images and videos for every social network — everything is processed in your browser, nothing uploaded.
Try the tool
100% in your browser, nothing uploaded

Keep reading

Image Size and Format for Every Social Network in 2026 (complete guide)
6 min
How to Reduce an Image's File Size to Upload It Faster (without it showing)
5 min
How to Compress Photos for Email Without Losing Quality
5 min
Blog