This tool uses 1024 bytes per KB and 1024 KB per MB. A receiving site can use decimal units, so compare the actual byte count with its own instructions. A file cap concerns bytes, not pixel dimensions. Dimensions, format, image detail and encoding settings all affect the result.
This tool searches quality settings first and reduces dimensions when needed to meet the cap. Either change can affect visible detail, so compare the preview and check both numbers before downloading.