Image tools
Convert, compress, resize and crop pictures, and turn pictures into PDFs.
Convert between formats
Compress and resize
- Compress imageCompress an image. Choose a quality, or type a limit such as 100 KB and get a JPG or WebP under it.
- Compress image to 100 KBCompress an image to 100 KB. The limit is preset: choose a photo or a scanned document and get a JPG…
- Compress image to 20 KBCompress an image to 20 KB. The limit is preset: choose a photo or a signature and get a JPG under…
- Compress image to 50 KBCompress an image to 50 KB. The limit is preset: choose a photo and get a JPG under 50 KB, ready for…
- Compress image to 10 KBCompress an image to 10 KB. The limit is preset: choose a scanned signature, thumb impression or…
- Compress image to 30 KBCompress an image to 30 KB. The limit is preset: choose a photo or a signature and get a JPG under…
- Compress image to 200 KBCompress an image to 200 KB. The limit is preset: choose a photo, a certificate or a scanned…
- Compress image to 300 KBCompress an image to 300 KB. The limit is preset: choose a photo or a document scan and get a…
- Compress image to 500 KBCompress an image to 500 KB. The limit is preset: choose one or more photos and get JPGs under 500…
- Compress image to 1 MBCompress an image to 1 MB. The limit is preset: choose large phone or camera photos and get JPGs…
- Compress image to 2 MBCompress an image to 2 MB. The limit is preset: choose large photos and get JPGs under 2 MB that…
- Compress PNGCompress PNG images. Colours are reduced to a palette, which commonly cuts the file by half or more…
- Resize imageResize an image. Type a width or height in pixels, or a percentage, and keep the proportions.
Edit, check and create
- Crop imageCrop an image. Drag the frame or type exact pixels, lock the shape to square, 4:5, 16:9 and more…
- Passport photo sizeCrop a photo to passport size. Lock the frame to 35 × 45 mm, 2 × 2 inches and other official shapes…
- QR code generatorMake free QR codes for links, text, Wi-Fi, UPI payments, WhatsApp, email and contact cards.
- Rotate imageRotate an image: turn it left, right or upside down, or flip it like a mirror.
Choosing between JPG, PNG, WebP, HEIC, AVIF, and SVG
Every image tool on SampleTestFiles processes pictures locally on your device using HTML5 Canvas, custom binary encoders, and WebAssembly decoders (for HEIC/HEIF photos).
| Format | Best used for | Transparency & compression behavior |
|---|---|---|
| JPG / JPEG | Camera photos, scans, government/job portals, email attachments | Lossy compression with adjustable quality (1–100%). No transparency (transparent pixels become solid white or your chosen background). Accepted by virtually 100% of upload forms. |
| PNG | Logos, screenshots, diagrams, text graphics, transparent cutouts | Lossless compression with full 8-bit alpha transparency. Keeps sharp edges around text and icons without compression halos, but produces larger files than JPG on camera photos. |
| WebP | Website images, modern apps, fast-loading galleries | Supports both lossy and lossless compression plus alpha transparency, typically 25–35% smaller than equivalent JPG or PNG files. |
| HEIC / AVIF | iPhone/iPad camera photos (HEIC) and next-gen web graphics (AVIF) | High-efficiency containers that store smaller files on your phone but are frequently rejected by older websites and application forms. Use HEIC to JPG or AVIF to JPG for universal compatibility. |
Meeting strict KB and pixel requirements on online forms
When an online examination, visa, or recruitment portal rejects an image, it is almost always due to one of three rules: maximum file size in kilobytes (such as 10–20 KB for signatures or 20–50 KB for passport photos), exact pixel dimensions, or file extension (.jpg vs .jpeg/.png). Use our Compress Image tool (or exact presets like 20 KB, 50 KB, and 100 KB) alongside Photo & Signature Resizer to hit both pixel dimensions and KB limits in a single browser step.