Design · verktøy

Bildekomprimerer og størrelsesendrer

Velg et bilde, angi dimensjoner og kvalitet, og last ned en separat JPG-, PNG- eller WebP-kopi.

Kjøres i nettleseren. Ingen opplasting.

JPG, PNG, WebP, HEIC/HEIF, AVIF, BMP, GIF/APNG, SVG and ICO. Animated files export only their first frame. Output up to 40 megapixels.

AVIF and some HEIC files may depend on browser support.

Multi-page TIFF uses only its first page. Some TIFF compression variants may not decode.

Quality applies to JPEG and WebP. PNG is lossless.

The image is processed locally in your browser.

Om verktøyet

Bildekomprimerer og størrelsesendrer sem complicação.

Endre størrelsen på eller komprimer vanlige JPG/JPEG-, PNG-, WebP-, HEIC/HEIF-, AVIF-, BMP-, GIF/APNG-, SVG-, ICO- og TIFF/TIF-bilder i nettleseren. TIFF-inndata bruker bare den første siden; enkelte TIFF-komprimeringsvarianter kan ikke dekodes. Originalen forblir uendret. Kvalitetsinnstillinger for JPEG og WebP kan redusere filstørrelsen med noe kvalitetstap; PNG beholder pikseldataene, men kan bli større, så sammenlign størrelsen før nedlasting. Gjennomsiktige piksler blir hvite ved lagring som JPG. Animerte inndata bruker én ramme, SVG rasteriseres, metadata kopieres ikke, og utdata begrenses til 40 megapiksler. Svært store inndata er avhengige av enhetens minne.

Veiledning

Slik bruker du Bildekomprimerer og størrelsesendrer

The Image Compressor and Resizer makes a smaller copy of a picture. You choose a file, set the new width and height, pick WebP, JPEG or PNG, and set a quality for the first two. The page then shows a preview, the new size in pixels and bytes, and a download link. The work happens in your browser, so the picture is not uploaded. Your original file is never changed. How small the copy gets depends on the picture, so check the numbers before you use it.

Slik gjør du

  1. Press Choose an image and pick a file. The width and height boxes fill in with the real size of the picture.
  2. Change the width or the height. With the proportions button on, the other number follows so the picture is not stretched. Press the button to turn it off.
  3. Pick an output format. WebP is shown first, then JPEG, then PNG.
  4. For WebP and JPEG, move the Quality slider. It goes from 40 to 95 and starts at 80. PNG ignores it.
  5. Press Resize and save image. Look at the preview and at the line that says how many percent smaller or larger the copy is.
  6. Press Download image to save the copy. Use Clear to start again with another picture.

Eksempler

Shrink a wide photo for a web page

Du skriver inn
Opprinnelige piksler
4000 x 3000
Ny bredde
1200
Proporsjoner låst
ja
Format
JPEG
Kvalitet
80
Du får
Ny høyde
900
Endring i filstørrelse
depends on the photo

The picture is 4:3, so a width of 1200 gives a height of 900 after rounding. The saved file size cannot be known in advance, because it depends on what is in the picture.

Ikke kjørt med verktøyet. Se på dette som en illustrasjon.

A phone photo in portrait mode

Du skriver inn
Opprinnelige piksler
3024 x 4032
Ny bredde
1080
Proporsjoner låst
ja
Du får
Ny høyde
1440

The shape is 3 wide to 4 tall. Setting the width to 1080 makes the height 1440. The height box changes by itself as you type.

Ikke kjørt med verktøyet. Se på dette som en illustrasjon.

The size limit

Du skriver inn
Forsøk 1
8000 x 5000
Forsøk 2
8000 x 5001
Du får
Forsøk 1
accepted, exactly 40 million pixels
Forsøk 2
error: Use dimensions from 1 to 8,000 px and no more than 40 megapixels in total.

Each side may be 1 to 8,000 pixels and the area may be at most 40,000,000 pixels. One extra row of pixels in the second try pushes the area to 40,008,000.

Ikke kjørt med verktøyet. Se på dette som en illustrasjon.

A transparent PNG saved as JPEG

Du skriver inn
Fil
logo.png with a see-through background
Format
JPEG
Du får
Bakgrunn
white
Nedlastingsnavn
logo-resized.jpg

JPEG cannot hold transparency. The code paints a white background first, then draws your picture on it. Choose PNG or WebP if you need to keep the see-through parts. This could not be run end to end, so check the result yourself.

Ikke kjørt med verktøyet. Se på dette som en illustrasjon.

Når det er nyttig

  • Make a photo smaller before you attach it to an email or upload it to a form with a size limit.
  • Shrink pictures for a blog, a shop page or a school site so pages open faster.
  • Turn a HEIC photo from an iPhone into a WebP or JPEG copy that more apps can open.
  • Create a smaller copy of a screenshot while keeping the same proportions.
  • Compare WebP, JPEG and PNG for one picture and keep the smallest copy that still looks fine to you.

Begrensninger

  • Each side of the new picture must be a whole number from 1 to 8,000 pixels, and the total must not pass 40 million pixels.
  • Only one picture is handled at a time, and only a single page is read from a TIFF file. Animated files, such as GIF or APNG, keep their first frame only.
  • SVG files are turned into regular pixel pictures. Metadata such as camera details and location is not copied into the new file.
  • HEIC, AVIF and some TIFF files depend on your browser and device. If the page says the picture could not be decoded, try another browser or another file.
  • PNG output does not change pixel values, so it can end up larger than the original. The percent line shows if the new copy is smaller or larger.

Tips

  • Set only the width and leave the proportions button on. That avoids a stretched picture.
  • Try WebP at 80 first, then lower the quality a little at a time until you see a change you do not like.
  • Do not scale a small picture up and expect it to look sharper. A bigger size only stretches the pixels you already have.
  • Keep your original file. The tool saves a new copy named with -resized, but you may want the first one later.
  • Look at the preview at full size before you download, especially text and faces.

Vanlige spørsmål

Sobre Bildekomprimerer og størrelsesendrer.

Is my picture uploaded to a server?

No. The page says the image is processed locally in your browser, and the code uses the browser's own picture tools to make the copy. The file stays on your device. The original file is not changed, and the new one is only offered as a download.

Which file types can I open?

The picker accepts JPG, PNG, APNG, WebP, HEIC and HEIF, AVIF, TIFF, BMP, GIF, SVG and ICO files. Some of them, such as HEIC, AVIF and certain TIFF types, depend on your browser. The saved copy is always WebP, JPEG or PNG.

What does the quality slider do?

It tells the browser how much detail to keep when it saves a WebP or JPEG. It runs from 40 to 95 percent. A lower number usually makes a smaller file but can add visible blur or blocks. It has no effect when you choose PNG.

Why is my PNG file bigger than before?

PNG keeps every pixel exactly, so the tool does not shrink it by dropping detail. If you only make the picture fewer pixels wide and tall, the file usually gets smaller. If you do not, the copy can be larger. The result line says by how many percent.

What happens to transparent areas?

With PNG output, see-through areas stay see-through. With JPEG, which cannot be transparent, they turn white. The code fills a white background for any format other than PNG, so WebP output also gets a white background here.

How do I keep the picture from looking stretched?

Leave the proportions button on. It remembers the width to height ratio of the file you chose. When you type a width, the height changes to match, and the other way round. Turn it off only if you want a squashed or stretched shape on purpose.

Why does it say my size is not allowed?

Width and height must each be whole numbers from 1 to 8,000, and the width times the height must not be over 40 million. Decimals are refused. Reduce one number, with the proportions button on, to bring both within range.

Does it keep the date, camera or location data?

No. The tool draws the picture on a new canvas and saves that, so metadata is not copied into the new file. That also means the saved copy will not carry the original camera information. Keep your original if you need that data.

Can I make many pictures at once?

No. You choose one file, make one copy and download it. For a folder of pictures you would repeat the steps for each one. Each download is named with the original name and then -resized.

Hvordan bruker du Bildekomprimerer?

Velg et bilde, angi dimensjoner og kvalitet, og last ned en separat JPG-, PNG- eller WebP-kopi.

Lastes dataene mine opp til en server?

Nei. Behandlingen skjer i nettleseren din, og opplysningene dine lastes ikke opp.