Compress Images, PDFs & Videos to Your Target Size
Reduce files to 20KB, 50KB, 100KB, 200KB, 500KB, 1MB, 10MB and more — directly in your browser.
Most Popular Tools
Instant browser-based compression to meet strict file size limits on the first try.
Target-Size Image Compressor
Compress JPG, PNG, and WebP photos to 20KB, 50KB, 100KB or any exact KB limit for exam portals and admissions.
Target-Size PDF Compressor
Shrink PDF documents strictly under 100KB, 200KB, 500KB or 1MB for government portals, job applications & visa forms.
Target-Size Video Compressor
Compress MP4, WebM, and GIF files to exact limits like Discord 10MB or Slack 5MB with two-pass bitrate calculation.
Popular Target Sizes
Quickly jump to dedicated compression tools tailored for specific file size thresholds.
🖼️ Image Target Sizes
📄 PDF Target Sizes
Why TargetCompress?
Built specifically to solve the frustration of uploading files to websites with strict size limits.
Target-Size Precision
Specify the exact KB or MB ceiling required by your portal. No guessing percentage sliders or re-trying multiple times.
Browser-Side Processing
Your files never leave your device. File processing happens directly in your browser using modern WebAssembly and Canvas technology.
Instant & Queue-Free
No waiting in server conversion queues. Compression utilizes your local device hardware for immediate processing.
100% Free Forever
No account required, no email subscriptions, no daily limits, and zero watermarks added to your documents.
Compress Files for Online Forms
Pass strict document and photo upload validators for government jobs, exams, admissions, and visa applications.
Compress Photo to 20KB
Strict limit for admit cards, hall tickets & entrance examination portals.
PHOTO • 50 KBCompress Photo to 50KB
Standard passport photo ceiling for state & central recruitment applications.
PHOTO • 100 KBCompress Photo to 100KB
High-resolution ID photo limit for university admission forms and profiles.
SIGNATURE • 20 KBCompress Signature to 20KB
Clear, sharp black/white digital signature scan optimization.
DOCUMENT • 50 KBCompress PDF to 50KB
Extreme document downscaling for small government portal attachments.
DOCUMENT • 100 KBCompress PDF to 100KB
Standard ceiling for identity proofs, caste certificates & affidavits.
DOCUMENT • 200 KBCompress PDF to 200KB
Optimal for multi-page certificates, marksheets & academic transcripts.
DIMENSIONS • PIXELSResize Photo Dimensions
Adjust width × height in exact pixels (e.g. 200x230px, 350x450px) for forms.
Student & Job Application Suite
Everything you need to prepare resumes, certificates, and portfolios for job portals and university submissions.
Resume PDF Compression
Keep your CV sharp and readable while fitting under recruiter email & ATS limits.
PORTFOLIO • 1 MBPortfolio PDF Compression
Compress multi-page design portfolios and work samples to under 1MB.
APPLICATION • MERGEMerge Documents into One PDF
Combine resume, cover letter, and certificates into a single ordered submission.
EDIT • DOCXPDF to Word Converter
Convert existing PDF resumes back into editable Word (.docx) documents.
All In-Browser File Tools (12)
Browse the full suite of client-side file compression, conversion, and editing utilities.
📄 PDF Suite
8 ToolsTarget-Size PDF Shrinker
Compress PDF documents strictly below exact limits like 100KB, 200KB, 500KB or 1MB for govt & job portals.
Images to PDF
Combine multiple JPG, PNG, and WebP photos or document scans into a single, clean PDF file.
Merge PDFs
Combine 2 or more PDF documents into one single file in your custom page order.
Split & Extract Pages
Extract specific page numbers or page ranges (e.g. 1-3, 5, 8-12) from any PDF file.
PDF to Images
Extract and render every page of your PDF into high-resolution JPG or PNG pictures.
Rotate PDF Pages
Permanently rotate sideways or upside-down pages by 90°, 180°, or 270°.
Watermark PDF
Add customizable diagonal text stamps ("CONFIDENTIAL", "DRAFT") across pages.
PDF ⇄ Word Converter
Convert PDF to editable Word (.docx) documents, or turn Word files into clean PDFs.
🖼️ Image Suite
3 ToolsTarget-Size Image Shrinker
Downscale JPG, PNG, and WebP pictures strictly below target KB (e.g. 50 KB passport or 100 KB exam photo).
Image Format Converter
Convert between JPG, PNG, and WebP instantly while preserving visual quality.
Image Resizer
Resize pixel width × height or scale by percentage with locked aspect ratio.
🎬 Video & GIF Tools
1 ToolHow In-Browser Processing Works
TargetCompress eliminates server uploads by executing compression algorithms directly on your local device.
1. Select Your File
Your file is loaded directly into your browser's private memory sandbox. Zero bytes are uploaded to our servers.
2. Set Target Size
Choose an exact target ceiling (e.g. 50 KB or 100 KB) or select a platform preset for Discord, Slack, or Govt forms.
3. Browser-Side Compression
Client-side WebAssembly and HTML5 Canvas engines calculate the optimal encoding parameters to preserve as much visual quality as possible.
4. Instant Local Download
The compressed file is generated locally as an in-memory blob for immediate download with zero server roundtrips.
Supported Formats
Comprehensive support across documents, images, and video media.
JPEG Photos
Digital photos, camera scans, passport images
PNG Graphics
Screenshots, signatures, logos & transparent assets
WebP Media
Modern high-efficiency web graphics
PDF Documents
Resumes, certificates, scanned forms, portfolios
MP4 Video
H.264 video clips for Discord, web & messaging
WebM Video
High-efficiency browser video with VP8/VP9
Animated GIF
Reactions, Discord stickers, Slack custom emojis
Word Documents
Microsoft Word documents for bi-directional conversion
📋 Common Platform File Size Limits Quick Reference
| Platform / Service | Standard Upload Limit | Recommended Preset |
|---|---|---|
| Discord (Free Tier) | 10 MB | Discord 10MB preset |
| Discord Nitro Basic | 50 MB | Discord Nitro 50MB preset |
| Slack (Free Workspaces) | 5 MB | Slack 5MB preset |
| Gmail & Outlook Email | 25 MB | Email 25MB preset |
| Job & Govt Portals | 100 KB - 200 KB | Custom Target: 100 KB or 200 KB |
1. The Technology Behind TargetCompress: In-Browser WebAssembly Architecture
Traditional online file compressors and document converters operate on an outdated client-server model: when you select a document or video, your browser uploads the entire file across the public internet to a remote cloud server. The server places your file in a processing queue, runs server-side command-line binaries (such as ImageMagick, Ghostscript, or FFmpeg), and sends a download link back to your browser. This architecture introduces severe security vulnerabilities, data privacy liabilities, long queue wait times, and bandwidth consumption.
TargetCompress fundamentally redesigns this paradigm through client-side WebAssembly (Wasm). WebAssembly is an open, high-performance binary instruction format that executes at near-native CPU speeds directly inside modern web browser execution sandboxes. By compiling industry-standard media engines—including FFmpeg (libavcodec, libavformat, libswscale) and PDF-Lib—into WebAssembly byte-code, TargetCompress runs computation-heavy compression algorithms entirely within your device's local memory (RAM) and CPU/GPU hardware.
| Architecture Metric | Traditional Cloud Converters | TargetCompress (Client-Side Wasm) |
|---|---|---|
| Data Transmission | Full file uploaded to remote third-party server | Zero bytes uploaded — 100% processed in local RAM |
| Data Privacy & Security | Files stored on cloud disks; vulnerable to breaches | Zero data persistence — memory cleared on tab close |
| Processing Queues | Subject to server queue delays and rate limits | Instant execution leveraging local multi-core CPU |
| Bandwidth Consumption | Consumes 2× file size (upload + download) | Zero data upload consumption (ideal for mobile data) |
| Compliance | Requires third-party data processing agreements | Inherently compliant with GDPR, HIPAA, and student privacy |
The Mathematical Binary-Search Quantization Solver
The core technical challenge in media compression is hitting an exact target file size limit (such as strictly under 20KB, 50KB, 100KB, 200KB, or 10MB) without guessing. Traditional compressors offer arbitrary percentage sliders (e.g. "70% quality"), which produce wildly unpredictable file sizes depending on the source image entropy, color frequency distribution, and noise levels.
TargetCompress resolves this problem using an automated iterative binary-search quantization solver. When an image is loaded, our algorithm tests candidate quality quantization parameters ($Q \in [0.01, 1.0]$) inside an off-screen HTML5 Canvas. In each iteration $i$, the algorithm calculates the resulting blob byte length $B_i$:
- If $B_i > T$ (where $T$ is your target threshold), the upper quality bound is halved: $Q_{ ext{high}} = Q_i$.
- If $B_i \le T$ and within acceptable tolerance ($T - B_i < \epsilon$), the iteration terminates immediately.
- If an image's pixel dimensions prevent it from reaching the target size even at minimum quantization, the solver automatically applies bi-cubic downsampling to optimize resolution while maintaining aspect ratio and visual clarity.
This algorithmic feedback loop completes in under 200 milliseconds, producing a file that strictly respects your upload ceiling on the very first try.
2. Digital Media Compression Masterclass: Formats, Bitrates & Algorithms
Achieving maximum visual fidelity while reducing file size requires selecting the correct compression algorithm and understanding how digital formats encode visual and audio information:
A. Image Formats: JPEG vs. WebP vs. PNG vs. AVIF
- JPEG (Joint Photographic Experts Group): Uses lossy Discrete Cosine Transform (DCT) coding combined with 4:2:0 chroma subsampling. JPEG is the universal standard required by 99% of government job portals, admission portals, and immigration authorities. When targeting extreme constraints (like 20KB or 50KB), JPEG delivers optimal facial feature legibility.
- WebP (Google): Utilizes predictive block intra-frame coding derived from the VP8 video codec. WebP achieves 25% to 35% higher compression efficiency than JPEG at identical structural similarity (SSIM) scores. It supports both lossy and lossless modes, as well as full alpha channel transparency.
- PNG (Portable Network Graphics): A purely lossless format relying on two-stage compression: horizontal filter prediction followed by DEFLATE (LZ77 + Huffman coding). While pristine for digital logos, diagrams, and sharp line signatures, raw photographic PNGs cannot be compressed under 50KB without converting to an indexed 8-bit palette or lossy JPEG.
- AVIF (AV1 Image File Format): Employs AV1 keyframe intra-coding with directional prediction and chroma derivative models. AVIF provides state-of-the-art compression efficiency for modern web applications.
B. PDF Document Stream Optimization
A PDF file is a structured container consisting of a catalog dictionary, page tree, font descriptors, content streams, and embedded binary objects. Bloated PDFs are almost always caused by two factors: uncompressed embedded raster images (e.g., high-resolution 300 DPI or 600 DPI flatbed scanner scans) and duplicate embedded font subsets.
TargetCompress optimizes PDFs through multi-layer structural processing:
- Raster Image Downsampling: High-resolution document scans are downsampled to standard web resolution (150 DPI for academic transcripts and identity cards, or 72 DPI for simple black-and-white forms) using bicubic interpolation.
- Stream Compression: Uncompressed PDF content streams (text layouts, vector graphics, metadata) are compressed using standard zlib FlateDecode algorithms.
- Metadata & Redundant Object Stripping: Unused XML metadata packets, thumbnail previews, private editing history, and duplicate embedded font dictionaries are cleaned from the cross-reference (XRef) table.
C. Two-Pass Video Bitrate Allocation for Discord, Slack & Email
Video compression introduces a third dimension: time. A video stream consists of Intra-frames (I-frames / keyframes), Predicted frames (P-frames), and Bi-directional frames (B-frames). When an application enforces a hard ceiling (such as Discord's 10MB free tier, Discord Nitro's 50MB limit, or Slack's 5MB free limit), standard single-pass Constant Rate Factor (CRF) encoding is insufficient because dynamic action scenes produce unpredictable file spikes.
TargetCompress calculates the mathematically required total bitrate using the formula:
Video Bitrate = Total Bitrate - Audio Bitrate (typically 96 kbps or 128 kbps) - Container Overhead (1-2%)
By passing this calculated target bitrate into our client-side FFmpeg WebAssembly engine with two-pass analysis, the video achieves the highest possible visual clarity while guaranteeing the final output stays strictly beneath the platform's upload limit.
3. Official Government, Exam Portal & Application Upload Standards (2026 Handbook)
Every year, tens of thousands of online applications are rejected or flagged during automated screening due to invalid photo dimensions, unreadable scanned signatures, or PDF documents exceeding portal size thresholds. Below is an authoritative reference of requirements across major national and international recruitment and examination systems:
| Portal / Authority | Document Type | Required File Size | Standard Dimensions | Format |
|---|---|---|---|---|
| SSC (CGL, CHSL, MTS, GD) | Candidate Photograph | 20 KB – 50 KB | 3.5 cm × 4.5 cm (200×230 px) | JPG / JPEG |
| SSC Portals | Scanned Signature | 10 KB – 20 KB | 4.0 cm × 2.0 cm (140×60 px) | JPG / JPEG |
| UPSC (Civil Services, NDA, CDS) | Photo & Signature | 20 KB – 300 KB | Min 350×350 px, Max 1000×1000 px | JPG / JPEG |
| UPSC Portals | ID & Category Certificates | 20 KB – 300 KB | Legible A4 scan | |
| NTA (NEET UG, JEE Main) | Passport Photo | 10 KB – 200 KB | 3.5 cm × 4.5 cm (80% face coverage) | JPG / JPEG |
| NTA Portals | Candidate Signature | 4 KB – 30 KB | Running hand on white paper | JPG / JPEG |
| State PSCs (UPPSC, BPSC, MPSC) | Photo & Signature | 20 KB – 50 KB | Passport standard | JPG / JPEG |
| State PSCs | Domicile & Caste Certificates | 50 KB – 100 KB | Single-page legible scan | PDF / JPG |
| US Visa (DS-160 / CEAC) | Digital Visa Photo | Under 240 KB | Square (600×600 px min, 1200×1200 max) | JPEG |
| Schengen / UK Visa (VFS Global) | Supporting Documents & Statements | Under 2 MB – 5 MB | Multi-page document bundle | |
| Corporate ATS & Job Portals | Curriculum Vitae / Resume | Under 500 KB | Clean text-searchable layout | PDF / DOCX |
Practical Advice for Passing Portal Validators on the First Try
- Always Adjust Dimensions Before Compression: If a portal demands $200 imes 230$ pixels and under 50KB, use our Image Resizer first to set the exact pixel grid, then run target compression. Trying to compress a 4000×3000 smartphone capture down to 20KB without resizing results in excessive compression blur.
- High-Contrast B&W for Signatures: Signatures written with black ink on clean white paper compress up to 4× better than blue ink on off-white or lined paper. Clean contrast allows the entropy encoder to compress large uniform white backgrounds into negligible byte counts.
- Avoid Re-compressing Already-Compressed Files: Always start your compression from the original camera capture or scanner file. Performing lossy compression repeatedly on a previously compressed JPEG generates compounding DCT generation loss (mosquito noise and blocking artifacts).
Frequently Asked Questions & Technical Reference
Everything you need to know about TargetCompress, browser-based WebAssembly compression, file privacy, and portal compliance.
How does TargetCompress compress files to an exact target KB or MB limit?
Traditional compressors make you guess percentages (e.g. 50% or 70%), which rarely lands on the exact file size required by strict upload validators. TargetCompress inspects the input file structure and applies an automated iterative binary-search quantization solver directly inside your browser. For images, it adjusts quantization matrices and resolution until the output falls just below your specified ceiling. For videos, it calculates the exact target bitrate based on duration and audio stream parameters. This guarantees that your file meets your portal's limit on the very first attempt.
Are my confidential files, ID proofs, or tax documents uploaded to any server?
No. TargetCompress is 100% serverless and client-side. The compression engine runs using WebAssembly (FFmpeg Wasm and PDF-Lib) directly inside your browser's local sandbox memory. Your photos, videos, and PDFs never travel across the internet and are never stored on any cloud database or remote server. When you close or refresh the browser tab, all temporary memory is immediately purged by your device.
How do I compress a passport photo to under 50KB or 20KB for exam portals?
To compress an admit card or exam portal photo to 20KB or 50KB: (1) First verify your portal's required pixel dimensions (typically 3.5×4.5 cm or around 200×230 px). If needed, use our Image Resizer to set the width and height. (2) Open our Compress Image to 50KB tool. (3) Drag and drop your photo. The binary-search solver will automatically optimize the image to sit safely under the threshold while preserving crisp facial details.
Why do government portals reject compressed PDFs, and how does TargetCompress fix this?
Government and job portals frequently reject PDFs for three reasons: (1) The file exceeds the byte ceiling (e.g. 100KB or 200KB); (2) The file contains unsupported encrypted layers or non-standard PDF/A revisions; or (3) Aggressive downsampling made small text illegible. TargetCompress uses PDF-Lib to optimize internal stream dictionaries, remove duplicate embedded font packets, and downsample raster scans while preserving clean vector fonts and legible 150 DPI typography.
How does two-pass video bitrate calculation guarantee Discord 10MB or Slack 5MB limits?
Single-pass Constant Rate Factor (CRF) video encoding cannot guarantee an exact file size because action-heavy scenes create unpredictable bitrate surges. TargetCompress inspects your video duration in seconds and computes the exact allowed bits: Total Bits = (Target MB × 8,388,608) / Duration. It allocates dedicated bitrates for H.264 video and AAC audio with container overhead buffering, executing two-pass encoding locally in FFmpeg Wasm so your clip uploads to Discord or Slack without error.
Can I use TargetCompress on mobile devices (Android & iPhone)?
Yes. TargetCompress is fully responsive and compatible with all modern mobile browsers including Google Chrome, Safari, Samsung Internet, and Firefox on both Android and iOS devices. Because processing executes locally, you don't even need high-speed mobile data to compress large files.
Which image, document, and video formats are supported?
We support JPG, JPEG, PNG, and WebP for image compression and conversion; PDF documents for size reduction, merging, splitting, watermarking, and rotating; MP4, WebM, MOV, and animated GIF for video compression; and bidirectional PDF to Microsoft Word (.docx) and Word to PDF conversion.
What is the difference between image dimensions (pixels) and file size (KB/MB)?
Image dimensions refer to physical resolution in pixels (width × height, such as 1920×1080 px or 200×230 px). File size refers to the storage volume required on disk (e.g. 50 KB or 2 MB). A photo can have large pixel dimensions but low file size through high compression, or small pixel dimensions with large file size if saved in uncompressed 24-bit PNG format. Online portals usually specify constraints for both dimensions AND file size.
Can TargetCompress merge multiple documents into a single PDF under 500KB?
Yes. Use our Merge PDF or Images to PDF tools to arrange your resume, certificates, and ID proof scans in your desired order and combine them. If the resulting merged PDF exceeds your application portal's limit, run it through our PDF Compressor to bring it below 500KB or 200KB.
Is TargetCompress completely free, and are there any watermarks or hidden quotas?
TargetCompress is 100% free with zero paywalls, zero daily conversion limits, zero watermarks, and no mandatory account registration or email subscription. We fund our serverless infrastructure and ongoing tool development through clean, non-intrusive advertisements compliant with Google Publisher Policies.