ShapeMyFile
100% Client-Side In-Browser Pipeline

Format Files to Exact Portal Ceilings

Deterministic, zero-upload file calibration for visas, passports, and official portals. Your documents never leave your browser memory.

Never leaves your browser (0 server uploads)
Bit-exact dimensions, ceilings & DPI
Balanced compression without distorting facial proportions
Processed 100% locally in your browser memory. Never leaves your device.
File Configured & Ready to Fix

US Diversity Visa (DV) Lottery Entry Photo

Local Engine Ready

Select a photo or document to inspect

Supports JPEG, PNG, WebP, and PDF up to 50 MB (all processed in local RAM)

Quick Presets:
Zero network transfer: processed exclusively in client-side memory
File Size Ceiling
Targeted to exact bytes
Format Standard
JPG / PNG / PDF
Pixel Dimensions
Bit-exact geometry
Visual Clarity
Iterative compression
No account or signup required
100% Private — Zero Server Uploads
Works on iOS, Android & Desktop
Deterministic instant results
OFFICIAL STANDARDS

Country Requirements & Portal Guides

Verified government specifications and portal upload rules from official sources.

UNITED STATES • ONLINE UPLOAD
Government Source

US Passport Online Renewal Photo

JPEG, max 10 MB
Size LimitFormatDimensions
Verified 2026-09-28Format File
UNITED STATES • PAPER PRINT
Government Source

US Passport Paper Print Photo

JPEG, 600×600 px
Size LimitFormatDimensionsPaper Print
Verified 2026-09-28Format File
UNITED STATES • ONLINE UPLOAD
Government Source

US Diversity Visa (DV) Lottery Entry Photo

JPEG, 600×600 px, max 240 KB
Size LimitFormatDimensions
Verified 2026-09-28Format File
UNITED STATES • ONLINE UPLOAD
Government Source

US Visa Application Photo (DS-160 Online)

JPEG, 600×600 to 1200×1200 px, max 240 KB
Size LimitFormatDimensions
Verified 2026-09-30Format File
UNITED KINGDOM • ONLINE UPLOAD
Government Source

UK Passport Online Digital Photo

JPEG, min 750×600 px, max 10 MB
Size LimitFormatDimensions
Verified 2026-09-28Format File
UNITED KINGDOM • ONLINE UPLOAD
Official Platform

UKVCAS Document Upload (Standard Doc)

PDF / JPEG / PNG, max 6 MB per file
Document UploadFormatSize Limit
Verified 2026-09-30Format File
CANADA • PAPER PRINT
Government Source

Canada Passport Paper Print Photo

JPEG, 50×70 mm (420×590 px min)
Size LimitFormatDimensionsPaper Print
Verified 2026-09-28Format File
GLOBAL • ONLINE UPLOAD
Official Platform

VFS Global Upload Guidelines & Portal Note

Upload Guide

VFS Global operates outsourced application portals for multiple governments. Published file size limits vary across regional centers and visa categories (e.g. 2 MB to 5 MB ceilings). ShapeMyFile formats documents to universally safe parameters.

Official PortalRead Upload Guide
SAUDI ARABIA • ONLINE UPLOAD
Official Platform

Nusuk Portal Photo Upload Guide

Upload Guide

Nusuk platform guidance for Hajj and Umrah registration. Published photo instructions vary by sub-service: profile photos require square JPEG/PNG up to 2 MB, while document attachments require PDF.

Official PortalRead Upload Guide
INDIA • ONLINE UPLOAD
Official Platform

Passport Seva Online Document Upload Guide

Upload Guide

Official Passport Seva Online Portal upload guidelines: supporting documents must be single or multi-page PDF files, strictly under 1 MB each.

Official PortalRead Upload Guide
HOW SHAPEMYFILE WORKS

Precision Calibration in 4 Direct Steps

Everything happens inside your browser. No server round-trips, no accounts, and zero privacy compromise.

1

Select Your Portal Preset

Pick your official target from verified government passport, visa, or lottery requirements.

2

Drop Your Photo or Document

Your file is decoded directly into browser memory using HTML5 canvas and Web Workers.

3

Deterministic Geometry & Compression

ShapeMyFile crops to the target aspect ratio, scales to official pixel dimensions, and iteratively optimizes JPEG compression under the byte limit.

4

Download Formatted File

Download a calibrated file matched to target dimensional, format, and file size specifications.

TRANSPARENCY & TECHNICAL SCOPE

What ShapeMyFile Checks & What You Must Verify

ShapeMyFile calibrates digital file geometry and byte limits in client-side browser memory. Understanding what is automatically formatted versus what requires applicant and consular verification ensures smooth and informed document submission.

What ShapeMyFile Automatically Checks & Formats

Automated client-side mathematical & geometry calibration

  • Exact Target Pixel Dimensions: Crops to the required aspect ratio (1:1 square, 35×45 mm, 50×70 mm) and resizes to the exact pixel width and height mandated by the portal.
  • Strict File Size Ceilings: Executes iterative bisection search to calibrate JPEG quantization, keeping output safely below gateway ceilings (e.g. 240 KB for DV Lottery) with minimal compression artifacts.
  • Format & Color Space Standardization: Re-encodes image streams into 24-bit sRGB color space to prevent green-tint and inverted color glitches caused by uploading raw CMYK print files.
  • EXIF Orientation Normalization: Bakes physical orientation into the canvas pixel grid so portrait photos captured on smartphones never display sideways in legacy government viewer scripts.
  • Zero Server Data Transfer: Processes your image solely in local device RAM using HTML5 Canvas. No copies or telemetry ever leave your device.
Result: Technical file parameters align with published gateway rules.

What You Must Verify (Tool Limitations)

Physical composition and biometric guidelines evaluated by consular staff

  • Background Uniformity & Color: You must shoot against a plain white, off-white, or light grey background without patterns, shadows, or furniture. ShapeMyFile does not replace backgrounds with AI cutouts.
  • Facial Expression & Direct Gaze: Your face must directly face the camera lens squarely with eyes open and mouth closed in a neutral expression. No tilted heads, profile views, or wide smiles showing teeth.
  • Eyeglasses & Head Coverings: Eyeglasses are strictly banned for US passport, visa, and DV lottery photos. Religious head coverings are permissible only if the full face from forehead to chin is unobstructed.
  • Even Ambient Lighting: Ensure balanced, diffused lighting across both sides of the face. Avoid harsh flashlight glare across the cheeks or deep dark shadows behind the ears.
  • Recency & Identity Resemblance: Your photo must have been taken within the preceding six months and accurately represent your current appearance without filters or touch-ups.
Reminder: Consular officers examine photographic authenticity and identity independently.
Consular & Legal Notice: ShapeMyFile is an independent formatting tool and is not affiliated with, authorized, or endorsed by any government agency or visa platform. Meeting technical file parameters (pixel resolution, aspect ratio, file size ceiling) resolves upload gateway barriers, but does not guarantee consular approval, visa issuance, or lottery selection, which remain at the sole discretion of the respective sovereign immigration authorities.
SPECIFICATION COMPARISON

Why Standard Photos Often Fail Portal Uploads

Generic photo apps distort proportions or export files that exceed strict upload limits. ShapeMyFile calibrates files to target specifications.

Standard Phone Photo (Uncalibrated)

Shot on smartphone, uncalibrated

● Exceeds portal limits
photo_unformatted.jpg4.8 MB • Over limit
4.8 MB (> 240 KB)
3:4 Ratio
3024 × 4032 pxServer Error 422: Format not accepted

Common Portal Rejection Errors:

File size exceeds official upload ceiling (e.g. 5–12 MB camera output) (4.8 MB vs max 240 KB)
Aspect ratio mismatch causes non-uniform stretching on upload (needs 1:1 square 600×600 px)
Result: Upload RejectedOver Limit

Calibrated by ShapeMyFile (Calibrated Output)

Deterministic in-browser compliance

✓ Meets technical file parameters
file_calibrated.jpg184 KB • Under Upload Ceiling
184 KB (< 240 KB)
1:1 Square
600 × 600 pxProcessed in 0.2S (WebAssembly / Canvas)

Calibrated Parameters:

Optimized under strict ceiling while maintaining visual sharpness: 184 KB (bisection search satisfied ceiling)
Exact pixel dimensions and proportional framing: 600 × 600 px (exact 1:1 aspect ratio)
TECHNICAL ARCHITECTURE

Engineered for Technical File Compliance

Purpose-built client-side tools designed specifically for strict bureaucratic portals.

Exact File Size Ceilings

Iterative bisection compression algorithm hits required byte thresholds with minimal quantization artifacts.

Government Aspect Ratios

Crop to fill or add clean margins with proportional scaling, preserving natural biometric geometry.

Multi-Format Conversion

Export to JPEG, PNG, or PDF with correct color profiles (sRGB) and required DPI metadata.

Zero-Knowledge Privacy

Files are processed exclusively in your device RAM. No images ever travel over the Internet.

Pre-Flight Portal Checks

Instant visual confirmation of dimensions, file size, format, and aspect ratio before you download.

Offline Capable

Runs completely offline once loaded. Disconnect your Wi-Fi and the tool continues to operate fully.

SECURITY & TRUST

Your Identity Never Leaves Your Device

Government documents and biometric photos are sensitive. ShapeMyFile was designed from day one with zero server uploads.

Local File Selection

Your file is read via the browser File API directly into local sandbox memory.

In-Browser Web Worker Engine

All resizing, framing, and compression happens locally via HTML5 Canvas and WebAssembly.

Instant Local Download

The compliant file is generated as a local Blob URL and saved directly to your disk.

Technical Proof of Client-Side ExecutionActive Monitor

Open your browser Developer Tools (F12) and inspect the Network tab. You will see 0 outbound POST requests while formatting files.

OFFICIAL GUIDELINES

Portal Guides & Photo Rules

Detailed upload guidelines and official rules for popular immigration and passport systems.

Explore All Guides
Official Specs4 min read
✓ Verified

Passport Photo Requirements Guide

Overview of online digital upload limits (54 KB to 10 MB) versus physical paper print rules (2x2 in / 51x51 mm).

Technical6 min read
✓ In-Browser

How In-Browser Compression Works Without Losing Quality

A technical walkthrough of binary quantization meeting exact byte limits in local device memory.

Troubleshooting5 min read
✓ Checklist

Why Government & Portal Uploads Reject Files

Examine common causes of rejection: EXIF orientation flags, dimension tolerances, and byte overshoots.

QUESTIONS & ANSWERS

Frequently Asked Questions

Everything you need to know about ShapeMyFile and official portal compliance.

ShapeMyFile executes entirely inside your browser using client-side JavaScript, HTML5 Canvas, and Web Workers. Your image bytes are never transmitted across the network, stored in a database, or seen by anyone.
GET STARTED

Format Files to Exact Portal Ceilings

Deterministic, zero-upload file calibration for visas, passports, and official portals. Your documents never leave your browser memory.