How to compress a passport photo to 25 KB or 30 KB while keeping facial features sharp

Preserving eye clarity, ear contours, and printed name-and-date strips inside tight 25–30 KB recruitment photo caps.

A 25 KB or 30 KB photograph ceiling sits right in the middle tier of Indian competitive exam rules. It is the signature standard of the Kerala Public Service Commission (Kerala PSC Thulasi profile, which famously mandates a 150 × 200 pixel portrait under 30 KB with the candidate’s name and the date of photograph printed clearly at the bottom), and it appears regularly across Railway Recruitment Board (RRB NTPC, Group D, ALP, JE) cycles, state teacher eligibility tests, and paramedical recruitment portals that ask for a 20 KB to 30 KB or 15 KB to 25 KB JPEG.

At 25 KB to 30 KB, you have enough byte headroom for a genuinely sharp portrait—provided you do not waste those bytes on two common traps. The first trap is compressing a full 1,200 × 1,600 pixel studio image down to 28 KB without resizing its pixel dimensions first; that turns your eyes into blurry smudges and makes the small digits of your printed name-and-date strip unreadable. The second trap is shooting in front of a textured curtain or dark wall, which forces the JPEG encoder to spend half of your 30,000-byte budget encoding background noise instead of your face.

This guide shows you how to prepare a crisp 25 KB or 30 KB passport photograph locally in your browser, including exact pixel grids for Kerala PSC and Railways, how to add or preserve a legible name-and-date placard at the bottom of the frame, and how to guarantee your file passes both decimal (30,000 bytes) and binary (30,720 bytes) portal validators.

Quick answer & key takeaways

To compress a passport photo to 25 KB or 30 KB while keeping facial features and any printed name-and-date strip razor-sharp, lock the portal’s required pixel grid first (such as 150 × 200 px for Kerala PSC Thulasi or 240 × 320 px for Railway Recruitment Boards), use a plain light background, and encode locally to 23,500–28,800 decimal bytes.

  • Always resize the canvas to the portal’s target pixel grid (such as 150 × 200 px for Kerala PSC or 240 × 320 px / 276 × 354 px for Railways) before compressing.
  • For Kerala PSC and portals requiring a printed name and date of photograph, use bold black sans-serif text on a solid white bottom strip occupying 12–15% of the height.
  • Use a plain white or light off-white background; flat background blocks free up 35–45% more bytes for your eyes, nose, and printed text.
  • Target 23,500–24,600 bytes for a 25 KB cap, or 27,500–29,200 bytes for a 30 KB cap, to stay safely below decimal byte validators.
  • Check the final file in the Application File Checker to verify exact width, height, and byte count before uploading to your profile.

How Kerala PSC Thulasi and Railway (RRB) photo specifications work

Kerala PSC’s One Time Registration (Thulasi) portal is one of the most precise document validators in the country. When you upload a profile photograph, the system checks that the image is in JPG format, measures exactly 150 pixels wide by 200 pixels high, weighs no more than 30 KB, and displays your full name and the date on which the photograph was taken printed in black text on a white rectangular band at the bottom of the photo. Because a Thulasi profile photo is printed on admission tickets and verification sheets for years, blurry text or a squished aspect ratio leads to immediate scrutiny objections.

Railway Recruitment Board (RRB) notifications and similar central/state boards typically ask for a colour passport photograph measuring 3.5 cm × 4.5 cm (or 35 mm × 45 mm, roughly 240 × 320 px to 276 × 354 px at 200 DPI) with a clear white or light-coloured background, often inside a 20 KB to 30 KB, 20 KB to 50 KB, or 15 KB to 40 KB window. Even when a portal’s upper cap is 50 KB, aiming for 26–29 KB at 276 × 354 pixels produces an ultra-crisp Q88–Q92 JPEG that satisfies both 30 KB and 50 KB notifications.

Comparison of 25–30 KB portrait requirements across major portals (always check your specific notification)
Portal / ExamPixel / Physical dimensionsByte windowSafe decimal byte targetSpecial visual rules
Kerala PSC (Thulasi)150 × 200 px (strict 3:4 ratio)Under 30 KB22,000 – 28,500 bytesName & Date of Photo printed on white strip at bottom
Kerala PSC Signature150 × 100 px (strict 3:2 ratio)Under 30 KB12,000 – 25,000 bytesSign on white paper; scan full 150 × 100 grid
RRB (Railways) Portrait3.5 × 4.5 cm (~240 × 320 px or 276 × 354 px)20 KB – 30 KB / 50 KB24,000 – 28,800 bytesPlain white/light background; no cap or dark glasses
State TET / Police / PSC200 × 230 px or 240 × 300 px15 KB – 25 KB or 20 KB – 30 KB22,500 – 24,500 bytesBoth ears visible; neutral expression

Keeping the printed Name and Date of Photograph legible at 150 × 200 px

In a 150 × 200 pixel Kerala PSC photograph, the entire portrait is only 200 pixels tall. If the white strip at the bottom holding your two lines of text (Name on line 1, Date of Photo on line 2) is 28 pixels tall, each line of text has barely 10 to 12 pixels of vertical height. At that miniature scale, ornate serif fonts (like Times New Roman) or thin light fonts become unreadable blurs once JPEG compression is applied.

To keep your name and date crystal clear at 150 × 200 pixels or 240 × 320 pixels, the bottom band must be pure solid white (#FFFFFF) and the lettering must be pure black (#000000) in a clean, bold sans-serif typeface (such as Arial Bold, Inter Bold, or Roboto Bold). More importantly, because a 150 × 200 pixel canvas contains only 30,000 pixels in total (about 475 JPEG 8 × 8 blocks), a 28 KB file budget is actually huge—allowing you to encode at JPEG Quality 95 to 98 where text edges experience almost zero compression loss.

How background uniformity boosts facial detail at 25–30 KB

Suppose you are compressing a larger 276 × 354 pixel (3.5 × 4.5 cm at 200 DPI) passport photo to fit inside a strict 25 KB (25,000-byte) cap. At 276 × 354 pixels, the image contains 1,575 JPEG blocks. If you stood in front of a patterned curtain, a brick wall, or a dimly lit room wall covered in colour noise, every background block contains complex high-frequency detail. The JPEG encoder treats background noise with the same mathematical priority as your eyelashes and pupils, spending 10,000 bytes on the wall and leaving only 15,000 bytes for you.

When you stand half a metre in front of a plain white or light cream wall in even window light (so your head does not cast a sharp dark shadow onto the wall behind you), the background blocks contain almost no high-frequency changes. They compress down to 3–4 KB total, freeing over 20,000 bytes exclusively for your face, hair, ears, and collar. That is the difference between a studio-grade 25 KB photo and a blotchy one.

  • Stand 0.5 to 1 metre away from the wall — Standing pressed directly against the wall creates a dark shadow halo around your ears and shoulders that portals reject and JPEG encoders struggle to compress cleanly.
  • Face a window or diffused light source — Even lighting across both cheeks prevents one side of your face from falling into noisy shadow.
  • Keep hair tucked behind both ears — Most railway and PSC notifications explicitly require both ears to be visible and eyes open looking straight at the lens.

Choosing between the 20 KB / 50 KB preset and custom pixel cropping

Relwick provides two local browser tools depending on whether your image is already cropped to the right dimensions:

  1. When you need specific pixel dimensions AND a 25–30 KB cap — Open the Photo and signature tool. Enter your exact width and height (e.g., 150 × 200 px for Kerala PSC, or 240 × 320 px for Railways), set the minimum KB to 20 and maximum KB to 25 or 29, crop your portrait, and download.
  2. When your photo is already the right dimensions and you want fast byte compression — Open the 20 KB exact image compressor (if your portal wants 15–25 KB) or set a custom 25 KB / 29 KB target in the Exact image compressor to hit an exact decimal byte ceiling without altering the aspect ratio.

Four checks to run before uploading to Thulasi or RRB portals

Before logging into the portal (where sessions often time out after 15 minutes), drop your finished portrait into the Application file checker and confirm four facts:

Pre-upload audit for 25 KB and 30 KB passport photos
Check itemWhat to verifyWhy portals reject if missed
True file formatMagic bytes start with FF D8 FF (Baseline JPEG)Renamed .png or WhatsApp .webp files fail server MIME validation
Decimal byte count≤ 24,800 bytes (for 25 KB) or ≤ 29,500 bytes (for 30 KB)Avoids the 1,000 vs 1,024 byte KiB mismatch on Windows/Android
Exact pixel grid150 × 200 px (Kerala PSC) or 240 × 320 / 276 × 354 pxThulasi scripts reject even a 1-pixel deviation (e.g., 150 × 201 px)
Visual & text rulesLight background, both ears visible, crisp name/date if requiredPrevents manual scrutiny rejection when admit cards are issued

Step-by-step: Compress a passport photo to 25 KB or 30 KB with sharp features

  1. Start with a high-resolution original portrait on a plain light background

    Use an unedited studio JPEG or a well-lit phone portrait taken in front of a plain white or off-white wall with both ears visible and no shadows behind your head.

  2. Add the Name and Date strip if your notification requires it

    For Kerala PSC or notifications asking for a printed name and photograph date, ensure a clean white band at the bottom displays your name and date in bold black sans-serif text below your collar.

  3. Set the exact pixel dimensions in the Photo & Signature tool

    Open Photo & signature, enter the portal’s exact pixel grid (such as 150 × 200 px for Kerala PSC or 240 × 320 px / 276 × 354 px for 3.5 × 4.5 cm slots), and align the crop box.

  4. Configure the 20–25 KB or 20–29 KB decimal byte window

    Set your minimum KB (e.g., 20 KB) and maximum KB (25 KB or 29 KB). The browser worker strips EXIF bloat and encodes the image at the highest quality factor that fits under your ceiling.

  5. Verify pixel dimensions and exact byte count locally

    Test the exported .jpg file in the Application File Checker (Application file checker) to confirm the exact pixel width, pixel height, and decimal byte count before uploading.

Common mistakes to avoid

What goes wrong: Compressing a 1200 × 1600 pixel studio photo down to 28 KB without resizing the pixel dimensions first.

Better approach: Resize the canvas to 150 × 200 px or 276 × 354 px first so the encoder can use Q88–Q96 quality instead of crushing detail at Q20.

What goes wrong: Uploading a 149 × 200 px or 150 × 201 px image to Kerala PSC Thulasi.

Better approach: Lock exact width = 150 px and height = 200 px in the Photo & Signature tool; Thulasi checks exact pixel dimensions strictly.

What goes wrong: Writing the name and date on the photo in thin cursive font or grey text over a dark shirt without a white background strip.

Better approach: Always place a solid white rectangular strip at the bottom of the portrait with bold black sans-serif lettering.

What goes wrong: Uploading a 30,400-byte file because Windows File Explorer labels it "29.6 KB".

Better approach: Target 28,000 to 29,200 decimal bytes so the file stays strictly under 30,000 bytes.

Frequently asked questions

Why does Kerala PSC Thulasi reject my photo even though it is under 30 KB?

Nine times out of ten, a Kerala PSC rejection happens because the pixel dimensions are not exactly 150 pixels wide by 200 pixels high (or 150 × 100 pixels for the signature), or because the file is a renamed PNG/WebP rather than a true baseline JPEG. Lock 150 × 200 px in the Photo & Signature tool (Photo & signature) to fix both issues at once.

Does the date printed on the photograph have to be the date I fill out the form?

No, it should be the actual date the photograph was taken, and that date must fall within the recency period stated in the notification (for example, within 6 months of the notification date for Kerala PSC, or within 1–3 months for railway/central exams). Never falsify a date on an old childhood photo.

What pixel dimensions should I use for a Railway (RRB) photo that asks for 35 mm × 45 mm between 20 KB and 30 KB?

35 mm × 45 mm is identical to 3.5 cm × 4.5 cm. At 200 DPI, that equals 276 × 354 pixels (or 240 × 320 pixels if the portal asks for a 3:4 grid). Setting 276 × 354 pixels with a 20–29 KB window in the Photo & Signature tool gives a crisp, compliant file.

How do I make sure my spectacles do not cause a rejection on a 25–30 KB railway or PSC photo?

If you wear prescription glasses daily, check whether the notification allows them (some recent notifications ask for photos without spectacles altogether to aid biometric facial matching). If allowed, ensure there is zero white glare or reflection on the lenses and that the frames do not obscure your eyes.

Can I prepare my Kerala PSC or Railway photo on my phone without uploading it to a third-party server?

Yes. Open Photo & signature or 20 KB image compressor in your mobile browser. All cropping, resizing, and byte-verified JPEG encoding run locally on your phone’s processor.

Summary

Whether you are updating a Kerala PSC Thulasi profile at 150 × 200 pixels under 30 KB or submitting a Railway Recruitment Board application under 25–30 KB, facial sharpness comes from right-sizing the pixel grid before compressing. Use a clean light background, lock the exact portal dimensions in the local Photo & Signature tool, and target 24,000 or 28,500 decimal bytes for a first-try upload pass.

Related guides

Browse all guides →