Brazil CNH (Driver's License) Photo Size and Requirements

The Brazil CNH (Driver's License) photo spec (brazil-cnh) is 30 × 40 mm (1.181 × 1.575 in), or 354 × 472 px at 300 DPI, on a white (#FFFFFF) background.

Requirements at a glance

Size30 × 40 mm (1.181 × 1.575 in)
Pixels354 × 472 px
DPI300
Background colorwhite (#FFFFFF)
File size limitUp to 1024 KB
Sourceservicos.portal.ap.gov.br
Last checked2026-10-29
Spec codebrazil-cnh

Frequently asked questions

What size is the Brazil CNH (Driver's License) photo?

It is 30 × 40 mm (1.181 × 1.575 in). The digital file is 354 × 472 px at 300 DPI.

What background color does the Brazil CNH (Driver's License) photo need?

This spec uses a white (#FFFFFF) background.

What file size is allowed for the Brazil CNH (Driver's License) photo?

The file should be no larger than 1024 KB.

Can I use this spec with the IDPhoto.ai API?

Yes. Set specCode to "brazil-cnh" in a POST /v2/makeIdPhoto request. The Passport Photo API reference describes the full request and response.

Make a photo with this spec

For people

Upload a portrait and get a photo prepared to this spec.

Make a photo with this spec

For developers

Send this spec code to the Passport Photo API.

curl -sS -X POST "https://api-us.idphotoapp.com/v2/makeIdPhoto" -H "Content-Type: application/json" -d '{"apiKey":"YOUR_API_KEY","apiSecret":"YOUR_API_SECRET","imageBase64":"BASE64_IMAGE","specCode":"brazil-cnh","outputFormat":"IMAGE_BASE64"}'

Related specs

All photo specifications

IDPhoto.ai is an independent service and is not affiliated with any government agency. Rules change, so always check the issuing authority’s current photo rules before you submit a photo.