Private by design: your image is opened, edited and saved by your own browser with the Canvas API. It is never uploaded to a server, and the page keeps working offline once loaded.
How to make an image 5 MB
- Choose or drop the image. JPG output is preselected because it compresses photos best.
- The size limit is already set to 5120. The tool tries quality values by binary search (7 steps) and keeps the best one under 5 MB.
- If even very low quality is too big, it reduces width and height and searches again; the note under the result tells you what changed.
- Download. Check the result size shown above the preview.
How many pixels fit in 5 MB?
A JPEG’s size is roughly pixels × bits per pixel ÷ 8. Bits per pixel depend on detail and quality, so these are rough planning numbers, not guarantees:
| Image type | Typical rate | Pixels that fit | 4:3 size | Square |
|---|---|---|---|---|
| simple graphic / document scan, quality 70 | 0.6 bits/pixel | 69.91 MP | 9,654 × 7,240 | 8,360 × 8,360 |
| average photo, quality 70 | 1.2 bits/pixel | 34.95 MP | 6,826 × 5,120 | 5,912 × 5,912 |
| average photo, quality 85 | 2 bits/pixel | 20.97 MP | 5,287 × 3,965 | 4,579 × 4,579 |
| detailed photo, quality 90 | 3.2 bits/pixel | 13.11 MP | 4,180 × 3,135 | 3,620 × 3,620 |
5 MB is a typical limit for email attachments and uploads with megabyte limits while keeping a lot of detail. At this size most photos fit at high quality without changing dimensions.
KB vs kB
This tool counts 1 KB as 1024 bytes, which is how most upload forms and operating systems measure. If a form uses 1 kB = 1000 bytes, 5 MB means 5,000,000 bytes, so the file here will also pass.
Smaller: 3 MB.