Why WhatsApp images fail portal checks as disguised WebP files—and how to re-encode true JPEGs

Diagnosing the "Invalid File Format" error when uploading photos forwarded via WhatsApp, Telegram, or web browsers, and re-encoding clean baseline JPEGs.

Here is one of the most common form-season mysteries in India: you visit a local photo studio, have your passport portrait taken, and ask the photographer to send the soft copy to your WhatsApp number. Or you take a photo of your signature on your phone, send it to yourself on WhatsApp so you can download it on your laptop via WhatsApp Web, and save the file to your desktop. The filename clearly says WhatsApp Image 2026-10-19 at 18.30.12.jpeg (or photo.jpg), and the file size is 38 KB—right inside the portal’s 20 KB to 50 KB window. Yet the moment you select it on the SSC, IBPS, UPSC, NTA, or state PSC upload screen, the portal rejects it with: "Invalid Image Format! Please upload only JPG/JPEG file."

What went wrong? Your file has a .jpeg or .jpg extension on the outside, but on the inside its binary stream is often encoded as a Google WebP (`RIFF....WEBP`) image—or a stripped progressive/non-JFIF stream generated by the messaging app or browser’s image cache! Because modern operating systems (Windows 10/11, macOS, Android, iOS) and browsers inspect the internal binary bytes automatically when opening a picture, the image opens normally when you double-click it, hiding the fact that its file extension is a lie.

Legacy recruitment portals are not nearly so forgiving. Their upload validators check that the file extension is .jpg/.jpeg and that the first three bytes of the binary file are FF D8 FF (specifically FF D8 FF E0 for a standard baseline JFIF JPEG). This guide shows you how to diagnose disguised WebP and PNG files in two seconds, how to re-encode any WhatsApp image into a genuine baseline JPEG locally in your browser, and how to transfer photos from your phone to your laptop without losing a single pixel of studio quality.

Quick answer & key takeaways

Images forwarded through WhatsApp chat, saved from WhatsApp Web, or downloaded from web browsers are frequently encoded in Google’s WebP format (RIFF....WEBP binary header) or non-standard wrappers—even when the saved filename ends in .jpg or .jpeg. To pass strict portal format validators, check the file in the Application File Checker and re-encode it into a genuine baseline JPEG (FF D8 FF) in the Photo & Signature tool or Exact Image Compressor.

  • WhatsApp Web, browser "Save image as" dialogs, and messaging apps frequently save WebP-encoded images (RIFF....WEBP) with a misleading .jpg or .jpeg filename extension.
  • Strict exam portals inspect the first 4–12 binary magic bytes of your upload and reject any file that does not begin with baseline JPEG markers (FF D8 FF E0).
  • Drop any suspicious .jpg into the Application File Checker to reveal its true internal binary format immediately.
  • Opening a disguised WebP or PNG image in the Photo & Signature tool or Exact Image Compressor decodes the raw pixels and writes a fresh, 100% compliant baseline JFIF JPEG.
  • When sending original photos or document scans over WhatsApp from your phone to a laptop, always attach the file as a Document rather than a gallery Photo.

How a WebP or PNG file ends up wearing a `.jpg` or `.jpeg` extension

Messaging platforms and web browsers optimize heavily for speed and bandwidth. When WhatsApp Web, Telegram Web, or a modern CDN renders an image inside your browser tab, the server often transcodes the image on the fly into WebP—a modern format created by Google that is 25% to 35% smaller than JPEG. When you right-click that image or click the download button and save it as photo.jpg (or when an Android gallery/chat app exports a cached WebP buffer with a .jpeg suffix), the browser writes the raw WebP bytes directly to disk under the .jpg filename.

If you inspect the first 12 bytes of that file in a hex viewer—or drop it into the Application file checker—you will not see the JPEG marker FF D8 FF. Instead, you will see 52 49 46 46 (which spells RIFF in ASCII), followed by four file-length bytes, followed by 57 45 42 50 (which spells WEBP). Even when WhatsApp saves an actual JPEG stream, it strips standard JFIF APP0 DPI headers and uses custom progressive Huffman tables that older government portal validators (built on early Java ImageIO or .NET System.Drawing) reject as "corrupted or unsupported JPEG format".

Binary magic bytes: What exam portal validators actually read inside your `.jpg` file
True internal formatFirst binary bytes (Hex)ASCII signatureWhat strict exam portals do
Baseline JFIF JPEG (True JPG)FF D8 FF E0 00 10 4A 46 49 46ÿØÿà..JFIFACCEPTED by all government & university portals
Disguised WebP named .jpg52 49 46 46 .. .. .. .. 57 45 42 50RIFF....WEBPREJECTED ("Invalid format / Only JPG allowed")
Disguised PNG named .jpg89 50 4E 47 0D 0A 1A 0A.PNG....REJECTED ("Invalid format / Corrupt JPEG")
Disguised Apple HEIC named .jpg00 00 00 .. 66 74 79 70 68 65 69 63....ftypheicREJECTED ("Invalid image file")

How to unmask a disguised WebP or PNG in 2 seconds

Whenever a portal throws an "Invalid Format", "Only JPG/JPEG allowed", or "Corrupted Image" error on a file that already ends in .jpg, do not waste time renaming .jpeg to .jpg or .JPG. Instead, open the Application file checker and drop the file in. The tool inspects the raw binary header bytes right in browser memory and displays the True Detected Format alongside the filename extension. If the extension says .jpg or .jpeg while the binary header is WebP, PNG, or HEIC, it flags the mismatch immediately.

Re-encoding any WhatsApp image into a true baseline JFIF JPEG

Fixing a disguised WebP file—or a WhatsApp progressive JPEG that lacks standard JFIF headers—takes about ten seconds and requires zero software installation:

  1. If you also need to set exact pixel dimensions and KB range — Open the Photo and signature tool, load the WhatsApp image, enter your portal’s width × height (e.g., 200 × 230 px or 140 × 60 px) and KB window (e.g., 20–50 KB or 10–20 KB), and click Download. The browser decodes the WebP/PNG/JPEG pixels onto an HTML5 Canvas and writes a brand-new, spec-compliant baseline JFIF JPEG (FF D8 FF E0) with proper DPI markers.
  2. If the pixel dimensions are already correct and you just need a true JPEG at an exact KB cap — Drop the image into the Exact image compressor (such as the 20 KB or 50 KB preset), make sure the output format is set to JPEG, and download.

Why you should always send exam photos as a "WhatsApp Document"

Even when WhatsApp does not convert your image to WebP, sending a passport photo, signature, or marksheet through standard WhatsApp chat (by tapping the Gallery/Photos icon) damages your file in three ways: it downscales full-page marksheets to roughly 1280 or 1600 pixels on the long edge, it applies aggressive lossy compression that introduces mosquito noise around signature strokes and small numbers, and it strips the original filename.

Whenever a photo studio sends your digital passport photo on WhatsApp—or whenever you send a phone scan of your signature or marksheet to your own laptop via WhatsApp—use the Document attachment option instead (Tap Attach 📎 / + → Document → Browse other docs / Choose from Gallery as Document). Sending an image as a WhatsApp Document transfers the exact, unmodified original file byte-for-byte with zero compression and zero format conversion.

Sending an application image via WhatsApp Chat Photo vs WhatsApp Document
BehaviourStandard WhatsApp Gallery PhotoWhatsApp "Send as Document" (Recommended)
Binary bytes & formatRe-compressed; often saved as WebP on WhatsApp Web100% untouched original bytes and header
Resolution (Marksheets)Shrunk to ~1280×907 px (small grades blur)Full original camera/scanner resolution preserved
Signature & text edgesAdds JPEG ringing / mosquito noise around inkZero additional compression loss
Original filenameReplaced with WhatsApp Image 2026-10-19...Preserves your exact filename (photo_200x230_40KB.jpg)

Bonus fix: Why the filename `WhatsApp Image 2026...` itself triggers errors

Even after you re-encode a WhatsApp image into a genuine baseline JPEG, watch out for one final quirk on older NIC and state recruitment portals: spaces, dots, and special characters in the filename. Default WhatsApp filenames look like WhatsApp Image 2026-10-19 at 14.22.08 (1).jpeg. Several portal upload scripts reject filenames that contain multiple dots (.22.08.), parentheses (1), spaces, or the 4-letter .jpeg suffix instead of .jpg. Always save your final upload with a clean alphanumeric filename using a single dot and lowercase .jpg, such as candidate_photo.jpg or signature.jpg.

Step-by-step: Convert a WhatsApp WebP or `.jpeg` image into a true portal-ready `.jpg`

  1. Test the rejected file in the Application File Checker

    Drop your WhatsApp image into Application file checker to see its true binary magic bytes (such as WebP or PNG disguised under a .jpeg extension) and its current pixel dimensions.

  2. Open the Photo & Signature tool or Exact Image Compressor

    Load the image into Photo & signature (if you need to crop or set exact pixels and KB bounds) or Exact image compressor (if the dimensions are already right).

  3. Set your portal’s required dimensions and decimal KB window

    Enter the exact pixel grid (such as 200 × 230 px for photos or 140 × 60 px for signatures) and target byte range (such as 20–48 KB or 10–19 KB).

  4. Export a fresh baseline JFIF JPEG with a clean `.jpg` filename

    Download the re-encoded image, which writes a genuine FF D8 FF E0 baseline JPEG stream, and save it with a simple alphanumeric name like photo.jpg or signature.jpg (no spaces, brackets, or extra dots).

  5. Transfer via "WhatsApp Document" if moving between devices

    If you need to send the finished .jpg from your phone to your laptop, attach it as a Document in WhatsApp so the messaging app never re-compresses or alters your verified bytes.

Common mistakes to avoid

What goes wrong: Right-clicking an image in WhatsApp Web and typing .jpg at the end of the filename when saving.

Better approach: Typing .jpg in the Save dialog does not convert a WebP stream; open the file in Photo & signature or Exact image compressor to re-encode its actual binary bytes into JPEG.

What goes wrong: Sending your carefully sized 19 KB signature from your phone to your laptop as a normal WhatsApp chat photo.

Better approach: Always attach prepared application files as a Document in WhatsApp so the exact byte count, dimensions, and FF D8 FF header remain untouched.

What goes wrong: Uploading a file named WhatsApp Image 2026-10-19 at 11.45.02 (1).jpeg with spaces, extra dots, brackets, and a .jpeg suffix.

Better approach: Rename the re-encoded file to a simple single-dot name like photo.jpg or sign.jpg; many portals reject filenames containing spaces, parentheses, or multiple dots.

What goes wrong: Having a studio send your marksheet or certificate scan as a standard WhatsApp chat image, reducing resolution to 1280 px.

Better approach: Ask the studio operator to send the scan as a WhatsApp Document or email attachment so small grade numbers stay sharp.

Frequently asked questions

Why does the portal say "Only JPG allowed" when my file is already named `WhatsApp Image.jpeg`?

There are two common reasons: first, files downloaded from WhatsApp Web are frequently encoded in Google’s WebP format (RIFF....WEBP inside) even though the filename ends in .jpeg. Second, some older portal scripts only check for the 3-letter .jpg extension (and reject .jpeg or filenames containing spaces and dots). Re-encoding the file in Photo & signature fixes the binary header to FF D8 FF and exports a clean .jpg file.

How can I tell if my `.jpg` file is secretly a WebP or PNG file?

Open the Application file checker and select your file. It reads the first 12 binary bytes directly in your browser and shows whether the true internal format is JPEG, WebP, PNG, or HEIC.

Why did my 35 KB photo turn into a 62 KB or 18 KB photo after I sent it on WhatsApp?

When you send a photo through normal WhatsApp chat, WhatsApp strips the original file and re-compresses the image using its own quality settings, completely changing the byte size. To keep your exact 35 KB file unchanged when sending via WhatsApp, tap Attach (+ or paperclip) → Document and select the file.

Does re-encoding a WhatsApp image in the Photo & Signature tool reduce its quality?

When you re-encode at your portal’s target pixel grid (such as 200 × 230 px at 35–45 KB), the local encoder uses high JPEG quality (Q90–Q96), preserving clean facial detail while replacing the invalid WebP or non-standard header with a universally accepted baseline JFIF header.

Are my WhatsApp photos uploaded to any external server when I convert them here?

No. Both the Application File Checker (Application file checker) and the Photo & Signature tool (Photo & signature) run 100% locally inside your browser tab.

Summary

A "WhatsApp Image" fails portal checks because a .jpg or .jpeg label on the outside cannot hide a WebP header (RIFF....WEBP), stripped JFIF markers, or a multi-dot filename on the inside. Verify any suspicious image in the local Application File Checker, re-encode it into a genuine baseline JPEG in the Photo & Signature tool, save it with a simple photo.jpg filename, and always use "Send as Document" when moving files across devices.

Related guides

Browse all guides →