Back to blog

How to Reduce JPG Size to 20KB for Online Applications

June 17, 2026

Learn how to reduce JPG size to 20KB for job portals and ID photos. Simple steps using free tools like Magic-Headshot for LinkedIn and resumes.

reduce jpg size to 20kb

You just finished your online job application, but when you try to upload your profile photo, the site says it must be under 20KB. Your crisp headshot from your phone is 500KB. Don't panic. Reducing a JPG to 20KB without making it look like a pixelated mess is easier than you think. Whether you're applying for a government job, submitting a photo for a visa, or updating your LinkedIn profile, many platforms enforce strict size limits. In this guide, I'll show you how to shrink your JPG to exactly 20KB using free online tools, including Magic-Headshot's resizing feature. You'll keep your face clear and professional while meeting the file size requirement.

Who this guide is for

Reader
Job seekers and professionals needing to upload headshots to strict online portals
Search intent
How-to guide for reducing JPG file size to exactly 20KB without losing quality

Focus on practical steps using free tools, especially for headshots, with attention to quality preservation

Why 20KB? Understanding File Size Limits

Many official websites, especially for government jobs, university portals, and visa applications, set a maximum file size of 20KB for uploaded photos. This is partly to save server space and partly to ensure fast loading. But 20KB is very small. A typical smartphone photo can be 2MB or more. The key is to balance compression and quality. You don't want your face to become blurry or blocky. Understanding that 20KB is a limit, not a target, helps. You can aim for 18-20KB to stay safe. Tools like Magic-Headshot allow you to specify exact dimensions and file size, so you don't have to guess.

Step 1: Start with the Right Dimensions

Before compressing, resize your image to the required pixel dimensions. Most applications ask for 2x2 inches or 35x45mm, which translates to about 300x300 pixels at 300 DPI. If your image is larger, reducing dimensions first lowers file size significantly. Use Magic-Headshot's free resize tool to set exact width and height. Keep the aspect ratio locked to avoid distortion. For headshots, a square crop centered on your face works best. Once dimensions are correct, you're ready to compress.

Step 2: Adjust JPEG Quality for Optimal Size

JPEG compression works by reducing image quality on a scale from 0 to 100. To hit 20KB, you'll likely need a quality setting between 30 and 60. Start at 50 and check the file size. If it's still too large, lower the quality gradually. Be careful: too low and you'll see artifacts around your eyes and mouth. Magic-Headshot's photo tools let you adjust quality while previewing the output. Aim for a balance where your face remains sharp but the background can be slightly softer. This is especially effective for LinkedIn headshots where your face is the focus.

Step 3: Use a Dedicated Tool to Hit Exactly 20KB

Manual adjustments can be tedious. Use a tool that lets you set a target file size. Magic-Headshot's free photo compressor allows you to input 20KB as the desired size, and it automatically adjusts quality. This saves time and ensures accuracy. Simply upload your headshot, select the output size, and download. The tool also removes background if needed, which can reduce file size further. For best results, use a well-lit, front-facing selfie with a plain background.

Step 4: Check the Output Quality

After compression, zoom in to check for artifacts. Look at edges of your hair, glasses, and eyes. If they appear jagged or blocky, increase quality slightly and try again. Sometimes a 1% change makes a big difference. Also check that the file size is within 18-20KB. If it's under 15KB, you may have over-compressed; your photo might look dull. Aim for the upper end of the range. Magic-Headshot's preview helps you compare before and after. Remember, this photo represents you professionally, so invest a few minutes to get it right.

Common Mistakes to Avoid When Reducing to 20KB

One common mistake is resizing the image too small. If you shrink to 100x100 pixels, your face may be unrecognizable. Always follow the required dimensions. Another mistake is using screenshots or low-resolution images; start with a high-quality selfie. Also, avoid saving in formats other than JPEG, as PNG files are larger. Finally, don't forget to check the file size after each step. Many tools show size in real-time. By avoiding these pitfalls, you'll have a clean, compliant headshot ready for any application.

Using Magic-Headshot for All Your Photo Needs

Magic-Headshot isn't just for generating AI headshots. It also offers a suite of free photo tools, including resizing, cropping, background removal, and compression. If you need to reduce JPG size to 20KB for a job portal, you can do it in one place. For LinkedIn, you might want a more polished headshot first—use the AI generation to create a professional look, then resize and compress. The tools are browser-based, no downloads required. Whether you're a student, job seeker, or freelancer, these free tools simplify the process.

Quality checks

Face sharpness

Zoom in to ensure eyes and mouth are clear, no blurriness.

File size accuracy

Confirm the downloaded file is between 18-20KB using file properties.

Aspect ratio

Ensure the image is not stretched; check that it matches required dimensions.

Avoid

  • Using a low-resolution selfie as starting point
  • Saving as PNG instead of JPEG
  • Over-compressing below 15KB
  • Ignoring required dimensions

Plan your AI headshot workflow

Try the photo tools

Use the photo tools after reading this guide to crop an ID-style image, resize files, prepare printable photo sheets, or adjust a background before publishing or submitting a profile photo.

Open photo tools

Try the workflow in Magic-Headshot

Generate realistic AI headshots for LinkedIn, resumes, team pages, and professional profiles after you understand which photo style and quality checks fit your goal.

Generate headshots

Choose the right credit pack

Compare one-time credit packs before producing final images for a profile refresh, job application, team page, or document-style photo workflow.

View pricing
How to Reduce JPG Size to 20KB for Online Applications | Magic-Headshot