Passport Photo Resize Widget

With this passport photo resize widget, visitors can make an exact passport or ID photo on your website in under a minute. They choose a size such as 3.5 × 4.5 cm or 2 × 2 inch, place their face inside the guide, pick a KB limit and download a ready photo. It is a free service you can offer with one paste of code.

Live preview – this is the real widget. Try it.

Customise your widget

The widget grows and shrinks to fit its content automatically, so visitors never see a scroll bar inside it.

Free forever. No sign-up, no API key, no ads inside the widget. Paste it into any page (WordPress: Custom HTML block).

What the Passport Photo Resize widget does

The widget is our Passport Size Photo Resize editor, with a live preview. Visitors see exactly what they will download while they adjust it. It includes:

  • Ready sizes: India 3.5 × 4.5 cm, USA and Indian visa 2 × 2 inch, UK, Schengen, EU and Australia 35 × 45 mm, Canada, China, Malaysia and stamp size.
  • An oval face guide and eye line, with drag, zoom, rotate and flip.
  • Background choices (white, off-white, light blue or any colour) and an optional AI background removal button.
  • Resolution of 200, 300 or 600 DPI, saved inside the file so prints come out at the right size.
  • A file size limit from 20 KB to 500 KB, which keeps the exact passport dimensions.

Photo sizes by country, pixel sizes at 300 DPI and tips for an accepted photo are listed on the passport photo resize tool page. Link to it if your visitors want the details.

Who should add a passport photo resize widget to their website

Anyone whose customers need ID photos can offer this widget. It works best for:

  • Travel and visa agents – clients can prepare a correct visa photo before their appointment, which saves you from re-doing applications.
  • Cyber cafés and CSC centres – put it on your website so customers can make PAN, Aadhaar or exam photos themselves, or use it at the counter.
  • Photo studios – offer a free digital tool for online forms, while promoting your printed passport photo service on the same page.
  • Exam and job information sites – photo rules are part of every notification, and the widget lets readers meet them right there.

How your visitors use it

  1. The visitor chooses a clear, front-facing photo. It opens in the live editor.
  2. They select the photo size for their country or form.
  3. They drag and zoom until the face sits in the oval, with the eyes near the dotted line.
  4. They set the background, the resolution and a KB limit if the form has one, then click Download.

How to add the Passport Photo Resize widget to your website

Set the colour and size in the box above, click Copy code, then paste the code where the Passport Photo Resize widget should appear. It is plain HTML (an iframe, one credit line and a tiny height script), so you need no account, API key or plugin.

PlatformWhere to paste the code
WordPressAdd a Custom HTML block and paste. Elementor: HTML widget. Classic editor: Text tab.
Any HTML sitePaste anywhere inside <body>. No jQuery or other library needed.
BloggerPost editor in HTML view, or Layout › Add a Gadget › HTML/JavaScript for every page.
WixAdd › Embed Code › Embed HTML, paste, then set the box height yourself (about 650–750 px).
ShopifyOnline Store › Pages › Show HTML (<>), or a Custom Liquid section in the theme editor.
Google SitesInsert › Embed › Embed code, then drag the box tall enough for the whole tool.

Where to put it: On a visa guide, put it right after the paragraph with the official photo rules. Place it near your list of documents required, so the photo is ready when the customer arrives. To remove the widget later, simply delete the code.

Customise the Passport Photo Resize widget

SettingOptionsTip for the Passport Photo Resize widget
Button colourAny colour (colour picker)Use your brand colour; it marks the Download button and the active options.
Maximum width760 px (recommended), 600 px, 480 px for sidebars, or full width760 px or full width is best, because the photo preview and options sit side by side.
Starting height480, 560 (recommended) or 680 pxChoose 680 px so the editor opens without jumping. It still adjusts itself.

Size and mobile

On computers, the preview and settings sit side by side; on phones, the preview comes first and the settings follow below it. Visitors can move the photo with one finger and zoom with two, and the widget fits any screen width.

Light on your page and always up to date

The iframe uses lazy loading, so the browser only loads the widget when a visitor scrolls near it. Inside the widget there are no ads, no analytics and no tracking scripts. The AI background removal model is large, so it is downloaded only if a visitor presses that button. Visitors who just resize and crop never load it, and your page is not affected either way.

Passport sizes and form rules change from time to time. When we add a country or improve the editor, the change reaches your widget automatically, with nothing for you to update.

When the Passport Photo Resize widget is not the right fit

  • The widget makes the photo the correct size and file size, but it cannot judge whether an official will accept it (expression, lighting, glasses). Always point visitors to the official rules.
  • It creates one digital photo. Visitors who want several copies on one sheet for printing need a print layout, for example through our Image to PDF tool.
  • AI background removal works on most photos, but a busy background or hair against a similar colour may need a retake against a plain wall.
  • On Wix and Google Sites the widget cannot resize itself, because those builders keep embedded code in a closed frame. Set a fixed height there.

Privacy for your visitors

Passport photos are personal data. In this widget the photo is edited inside the visitor’s own browser, including the AI background removal, and it is never uploaded to our server or yours. No account, no cookies and no adverts are involved, which is reassuring for customers of agents and cyber cafés.

Is the passport photo resize widget free?

Yes. It is free for any website with no limits, no sign-up and no API key. We only ask you to keep the credit line below it.

Which passport sizes can visitors make?

India 3.5 × 4.5 cm, 2 × 2 inch for the USA and Indian visa, 35 × 45 mm for the UK, Schengen, EU and Australia, plus Canada, China, Malaysia and stamp size.

Can visitors reduce the photo to 20 KB or 50 KB?

Yes. They choose a limit from 20 KB to 500 KB in the File size list. The dimensions stay exact and only the compression changes.

Are the photos uploaded to a server?

No. Everything, including background removal, happens in the visitor’s browser.

Does it work on phones?

Yes. Visitors can drag with one finger and pinch to zoom on Android phones and iPhones.

Will the widget slow my website?

No. It is lazy-loaded, has no ads or trackers, and the large AI file loads only if a visitor asks for background removal.

Open the full Passport Size Photo Resize tool →