Photo requirements data for developers

https://pixtidy.com/requirements.json lists the official photo requirements for 31 passports and visas — print size, head height range, background, rules, and links to each official source. Free, no key, CORS enabled.

A snapshot is also on GitHub under CC BY 4.0: github.com/agent-gigmole/pixtidy-visa-photo-specs. Report corrections there with a link to the official source.

Fields in each documents entry
FieldDescription
idUnique document identifier.
countryCountry display name.
documentDocument display name.
pageURL of the pixtidy requirements page for this document.
print_mmPrint width and height in millimetres, or null when unspecified.
pixelsOfficial pixel width and height, or null when no official pixel size is specified.
head_heightMinimum and maximum fractions of photo height, unit fraction_of_photo_height, and official flag (false for a framing recommendation).
backgroundBackground requirement description.
fileFile requirement note, or null when absent.
rulesArray of photo requirement strings.
sourcesOfficial sources with label, URL, and verified date.
const r = await fetch("https://pixtidy.com/requirements.json"); const { documents } = await r.json();

Facts come from the official sources listed with each document; please cite them and link to pixtidy.com. Requirements change — check the official source before you rely on them.

Check a photo against these rules →