The 2KB gap between this tool's default target and the limit you were given exists for a specific reason. Upload portals check file size at the server, not the browser. The number your operating system shows you for a file is the raw byte count stored on disk. When a browser sends that file as a form submission, it wraps it in a multipart HTTP request with additional headers and boundary markers. Depending on how the server measures the incoming request, it may count those extra bytes as part of the file size. A file that reads as exactly 50,000 bytes on your desktop might arrive at the server as 50,180 bytes and get rejected. Targeting 48KB rather than 50KB gives the upload enough headroom that the transmission overhead doesn't push it over the limit.
There is also a units ambiguity worth knowing about. When a portal says 50KB, it might mean 50,000 bytes (decimal kilobytes) or 51,200 bytes (binary kibibytes, which is how Windows and most operating systems count). Most portals use the decimal definition, but not all. If you compress to exactly 50,000 bytes and the portal counts in kibibytes with a ceiling of 51,200, you pass with room to spare. If it goes the other way and the portal means 51,200 but you compressed to 51,000, you still pass. The 48KB default keeps you safely below either interpretation.
Passport and KYC photos: size limit versus dimension requirements
Government portals and KYC systems often specify both a file size limit and a minimum pixel dimension. A common combination is a photo under 50KB with a minimum size of 200 by 200 pixels or 300 by 400 pixels. The file size and the pixel dimensions are separate requirements that can work against each other: a photo at 300 by 400 pixels contains 120,000 pixels of data, which pushes the encoder toward a higher quality setting and a larger file. Most standard portrait photos at these dimensions will still compress to under 48KB with acceptable visual quality. If you find the output looks too degraded at 48KB from a high-resolution source, try cropping your photo to just the head and shoulders using the crop tool before compressing. Removing the background and excess space reduces the pixel count, which in turn reduces how much compression is needed to reach the size target.
The format question matters more at this size limit than at looser ones. Some portals that list both JPEG and PNG as accepted formats will still reject a PNG that meets the size requirement if the system was built expecting JPEG byte patterns in the file. JPEG is the only format with effectively universal acceptance across all institutional upload systems. If a correctly sized file keeps getting rejected and you have tried everything else, switching from PNG output to JPEG output is worth trying before concluding there is a different problem. For tighter limits than 50KB, the compress to 20KB tool covers signature image requirements and the strictest government form photo limits.