What YouTube asks for
For a video, YouTube recommends 3840×2160 pixels at 16:9, needs at least 640 pixels across, and takes JPG or PNG. From a computer the file can be up to 50 MB, but the phone app takes only 2 MB. A podcast on YouTube also has a square thumbnail, where YouTube recommends 1280×1280 (and allows 10 MB from the phone), and Shorts use 9:16. This tool checks all three against those numbers.