Your files never leave your device. All processing happens locally in your browser.
How do I check if my photo or document meets a portal’s upload requirements before uploading?
Open AnyTool’s Portal Upload Validator, pick a preset (passport/visa photo, exam-form photo, signature, document) or enter the exact rule, then drop your JPG, PNG or PDF. It measures the file and reports each rule — format, file size (min and max KB), pixel dimensions, aspect ratio and PDF page count — as pass, warn or fail with your value next to what’s required. For images you can then Auto-fix: it resizes, converts PNG→JPEG and compresses to land inside the size window, re-validates, and lets you download a compliant file. Everything runs in your browser; the file is never uploaded.
Checks format, file size (min & max KB), pixel dimensions, aspect ratio and PDF page count
Presets for passport/visa photo, exam-form photo, signature and document — plus a custom rule editor
Auto-fix images: resize, convert PNG→JPEG (white background), compress to the KB window, then re-validate
Before/after summary (size + dimensions) and a one-click download of the compliant file
100% client-side — your file is never uploaded; safe for IDs, passport photos and documents
What is
Portal Upload Validator
A portal upload validator is a tool that measures an image or PDF against a portal’s upload specification — the allowed format (typically JPG/JPEG, PNG or PDF), the file-size window in kilobytes (a minimum and a maximum), the pixel dimensions (an exact size or a min/max range), the aspect ratio, and for PDFs the page count — and reports whether each rule passes or fails before you submit. “File too large”, “wrong format” and “invalid dimensions” are the most common reasons government, exam, visa and job portals reject an upload, and requirements differ from one portal to the next. AnyTool’s validator also auto-fixes images by resizing to the target dimensions, converting to the required format on a white background, and tuning JPEG quality so the result lands inside the size window, then re-validates the fixed file — all in the browser, with nothing uploaded.
Almost always because the file breaks one of the portal’s rules: it’s the wrong format, too large or too small in KB, or the wrong pixel dimensions or aspect ratio — the validator shows you exactly which rule fails.
Portals reject uploads mainly for three reasons: the file is in the wrong format (many accept only JPG/JPEG, some also PNG or PDF), the file size is outside the allowed window in kilobytes (an exam photo might need 20–50 KB, a signature 10–30 KB, a document up to 1–2 MB — both a minimum and a maximum can apply), or the pixel dimensions or aspect ratio don’t match (for example ~200×230 px for an exam photo, or 35×45 mm ≈ 413×531 px for a passport photo). Some portals also cap the number of PDF pages. AnyTool’s Portal Upload Validator measures your file and shows each rule as pass, warn or fail with your value beside what’s required, so you can see precisely what to fix — and for images, fix it in one click. Because exact specs differ per portal and change, always confirm the official requirement on the portal or notification itself.
Yes, for images. Auto-fix resizes to the target dimensions, converts PNG to JPEG on a white background if needed, and compresses to land inside the KB window, then re-validates and lets you download.
For image files, the Auto-fix button does the work for you. It resizes the picture to the target pixel size using a high-quality resampler (it cover-crops to an exact size, or scales to fit a min/max range), converts PNG or other formats to JPEG on a white background when the spec needs JPEG, and binary-searches the JPEG quality so the encoded file lands inside the required minimum-to-maximum KB window — dropping the pixel size slightly as a last resort if it’s still over the limit. It then re-measures and re-validates the result and shows a before/after of the size and dimensions before you download the compliant file. Auto-fix re-encodes the image, so compression can reduce quality and cropping to an exact size may trim the edges — always preview the result before submitting. For PDFs the tool reports the format, size and page count but does not shrink the PDF; use a separate PDF compress or split step if needed.
It is never uploaded. The file is measured, resized, converted and compressed entirely in your browser, with no server, API or CDN, so it’s safe for IDs, passport photos and personal documents.
Nothing leaves your device. The Portal Upload Validator opens, measures and (for images) resizes, converts and compresses your file entirely on your device using the browser’s own canvas and a bundled high-quality resizer, with no server, no API and no CDN call, and it works offline once cached. Your file is never uploaded, logged or stored — which makes it safe for sensitive documents like passport photos, signatures, Aadhaar/PAN scans and other IDs, unlike many online “resize image for portal” sites that upload your file to their servers. Only the compliant file you choose to download is ever saved, and closing the tab discards everything else.
The presets are general, research-backed starting points (e.g. exam photo 20–50 KB ~200×230 px, passport 35×45 mm). Each portal’s exact spec differs and changes, so always confirm the official requirement.
The built-in presets reflect common, widely documented specifications — an Indian govt-exam photo around 3.5×4.5 cm (≈200×230 px) at 20–50 KB in JPEG, an exam signature around 3.5×1.5 cm (≈140×60 px) at 10–30 KB, a biometric passport/visa photo at 35×45 mm (≈413×531 px) or US 2×2 in (≈600×600 px), and document scans typically capped at 1–2 MB — but these are general values, and the exact numbers vary between portals and exams and are updated over time (UPSC, for instance, can allow photos up to 300 KB while SSC leans much smaller). Treat a preset as a convenient starting point, switch to the Custom rule to enter the precise format, KB window, dimensions, aspect ratio and page limit your portal demands, and always verify against the official notification or upload page before submitting.
Detailed Explanation
📖How It Works
In-Browser Portal Upload Validation and Auto-Fix (Format, Size, Dimensions, Aspect, PDF Pages)
AnyTool’s Portal Upload Validator measures an uploaded image or PDF against a portal’s upload specification entirely in the browser and reports, rule by rule, whether the file will be accepted. A specification is a set of optional limits — the allowed formats (typically JPG/JPEG, PNG, PDF), a file-size window in kilobytes with a minimum and a maximum, pixel dimensions expressed either as an exact width×height or as a min/max range, an aspect ratio, and for PDFs a maximum page count. The user picks a preset (passport/visa photo, exam-form photo, signature, document scan) or enters a custom rule, then drops a file; the engine reads the format from the MIME type and extension, the size from the file bytes, the width and height by loading an image, and the page count of a PDF with pdfjs (the worker is bundled, with no CDN). Each rule is returned as pass, warn or fail with the user’s actual value beside the requirement and a fix hint. “File too large”, “wrong format” and “invalid dimensions” are the most common reasons government, exam, visa and job portals reject an upload, and the specs differ from one portal to the next.
Validates format, file size (min & max KB), pixel dimensions (exact or range), aspect ratio and PDF page count
Reads format from MIME + extension, size from file bytes, image width/height via an Image, PDF pages via pdfjs (bundled worker, no CDN)
Each rule returns pass / warn / fail with the actual value, the requirement and a fix hint
Presets: passport/visa photo, exam-form photo, signature, document scan — plus a custom rule editor
Wrong format, too large/small, or wrong dimensions are the #1 reasons portals reject uploads
⚙️Methodology
How Auto-Fix Resizes, Converts and Compresses an Image to Meet the Spec
For image files the tool can auto-fix the upload. It computes a target pixel size from the spec — cover-cropping to the exact width×height for an exact rule, or scaling proportionally to land inside the min/max range — and renders the picture with a high-quality Lanczos resample (the pica library, JS + WASM + web-worker), upscaling with smooth canvas drawing when the source is smaller. When the spec requires JPEG it flattens the image onto a white background, so a transparent PNG converts cleanly to JPG. It then binary-searches the JPEG quality so the encoded file lands inside the required minimum-to-maximum kilobyte window, and as a last resort reduces the pixel size slightly if the file is still over the maximum at low quality. The fixed Blob is re-measured and re-validated against the same spec, and the page shows a before/after of the size and dimensions plus notes describing what changed (resized, converted, trimmed). The user previews the result and downloads a compliant file. PDFs are reported (format, size, page count) but not rasterised or shrunk; the page directs the user to a separate compress or split step.
Target size: cover-crop to exact width×height, or scale proportionally into a min/max range
High-quality resize with pica (Lanczos, JS + WASM + web-worker); smooth canvas upscale when enlarging
Converts PNG/other → JPEG on a white background when the spec needs JPEG
Binary-searches JPEG quality to land inside the min–max KB window; drops pixel size as a last resort
Re-measures and re-validates the fixed file; shows before/after size & dimensions, then downloads it
PDFs are reported but not shrunk — use a separate compress/split tool
🔒Privacy & Security
Privacy and Honest Limits: Local Validation, Confirm the Official Spec, Preview the Re-encode
Every step runs on the device: the file is measured, resized, converted and compressed with the browser’s canvas and the bundled pica resizer, the PDF page count is read with a bundled pdfjs worker, and nothing is uploaded, logged or stored — there is no server, API or CDN, and the page works offline once cached. That makes the tool safe for sensitive files such as passport photos, signatures, Aadhaar/PAN scans and other IDs, unlike many online “resize image for portal” sites that upload the file to their servers; only the compliant file the user downloads ever leaves the page. The page is explicit about its limits. The built-in presets are general, research-backed starting points (for example an exam photo around 200×230 px at 20–50 KB, a signature around 140×60 px at 10–30 KB, a passport photo at 35×45 mm ≈ 413×531 px), but each portal’s exact specification differs and changes over time, so the user should switch to the custom rule to enter precise values and always confirm the official requirement on the portal or notification itself. Auto-fix re-encodes the image, so compression can reduce quality and cropping to an exact size may trim the edges — the result must be previewed before submitting.
No upload: file measured, resized, converted and compressed locally; PDF pages read with a bundled pdfjs worker
No server, API or CDN; offline-capable — safe for IDs, passport photos and documents
Only the compliant file the user downloads ever leaves the page
Presets are general starting points; exact specs differ per portal and change — confirm the official requirement
Auto-fix re-encodes (compression can reduce quality; exact-size cropping can trim edges) — preview before submitting
Checking files for a portal upload: in-browser (AnyTool) vs typical online resize/validate sites
Capability
AnyTool
Typical online resize-for-portal sites
Processing
Runs in your browser, no CDN
Server-side; file uploaded to their servers
Privacy (IDs/photos)
File never uploaded; offline-capable
Photo/document sent to a server
Rules checked
Format, min/max KB, dimensions (exact/range), aspect ratio, PDF pages