At 3MB the tool checks a full quality 100 encode first and uses it if it already fits. If it doesn't, it searches down for the highest quality that does, rather than guessing a fixed value. Both steps run in a background worker, so the tab stays responsive even with a batch of large photos.
If reaching 3MB would mean dropping quality low enough to look bad, which can happen with very large camera files, the tool trims the pixel dimensions slightly instead and searches again at that size. The result panel shows when this happened.
How 3MB is counted
This tool uses decimal units: 1 MB is 1,000 KB and 1 KB is 1,000 bytes, so a 3MB target means at most 3,000,000 bytes. Windows and some sites count 1 MB as 1,048,576 bytes, which makes their limit slightly larger. A file under 3,000,000 bytes passes either way.
When 3MB is the wrong target
If the site says 2MB, use compress to 2MB; if it allows 5MB, compress to 5MB keeps more quality. iPhone photos in HEIC format often need HEIC to JPG more than compression, because many forms reject HEIC at any size.