IMAGE CONVERTER

Image Converter

Convert between PNG, JPEG and WebP with resizing, quality control and Base64 output.

Output format

JPEG suits photos, PNG suits icons and transparency, and WebP is often smaller.

Resize

Quality

Lower values produce smaller files but lose more detail.

Background Fill

Use it to embed images in frontend code as a Data URL or raw Base64 text.

Local ConversionImages are not uploaded. Decoding, resizing and encoding all happen in your browser.
Quality ControlAdjust format, size and quality to balance sharpness and file size.
Base64 OutputCopy the result as a Data URL or raw Base64 for frontend development.

How to Convert Image Formats

  1. Upload or drop a PNG, JPEG or WebP image, or paste an image from the clipboard.
  2. Choose the output format, resize mode, quality and background fill.
  3. Click “Convert Image”, review the preview, then download it or copy the Base64 text.

FAQ

Are my images uploaded?

No. Image decoding, resizing, encoding and Base64 generation all run locally in your browser.

Why does a transparent background turn white after converting to JPEG?

JPEG has no alpha channel, so transparent areas are filled with the selected background color, white by default. Choose PNG or WebP to keep transparency.

Why is the output image larger than the original?

Re-encoding changes the compression. A high quality setting, an enlarged size, or converting from an already heavily compressed format can make the file larger.

How much does Base64 increase the size?

Base64 uses four characters for every three bytes, so the text is about 1.33 times the size of the original binary data.

Convert PNG, JPEG and WebP Images in Your Browser

Load a PNG, JPEG or WebP image, choose the output format, resize it, adjust lossy quality and optionally produce Base64 text. Decoding, canvas rendering and encoding happen locally; the image is not uploaded.

How to Convert an Image

  1. Drop or choose a PNG, JPEG or WebP file, or paste an image from the clipboard.
  2. Choose PNG, JPEG or WebP as the output format.
  3. Select a resize mode and enter a percentage, width or height when needed.
  4. Adjust quality for JPEG or WebP, and choose a background when transparency must be flattened.
  5. Select Convert Image, review the preview and file size, then download it or copy the Base64 output.

Choosing an Output Format

PNG is lossless and keeps an alpha channel, which suits icons, screenshots and images that need transparency. JPEG is lossy and widely compatible; it has no alpha channel, so transparent areas are filled with the selected background. WebP can be lossy or effectively lossless depending on the quality setting and usually produces a smaller file than JPEG or PNG at a similar appearance.

Re-encoding always creates a new file. Converting a heavily compressed JPEG to PNG does not restore lost detail, and it usually makes the file much larger. Converting a PNG with transparency to JPEG requires filling the background.

Resizing and Quality

Original keeps the decoded dimensions. Percent scales both axes by the same factor. Fixed width or fixed height preserves the aspect ratio and calculates the other side automatically. The page reports the target dimensions before conversion.

For JPEG and WebP, lower quality values reduce file size and remove more detail. PNG ignores the quality setting because it is lossless. Output is limited to 16 million pixels to stay within common browser canvas limits.

Base64 and Data URLs

Base64 encodes the converted bytes as text. A Data URL prefixes the Base64 payload with its MIME type, such as data:image/webp;base64,..., so it can be used directly in an img src or CSS url(). Raw Base64 omits that prefix.

Base64 is encoding, not compression: the text is about 1.33 times the size of the binary image. Very large images also produce very large text strings, which can be cumbersome to edit or paste.

Frequently Asked Questions

Are my images uploaded?

No. The page decodes and encodes images with browser APIs and does not send them to a processing server. The website still loads third-party analytics and advertising scripts.

Why does JPEG turn transparency white?

JPEG has no alpha channel. Transparent areas are composited onto the selected background, which defaults to white. Use PNG or WebP when transparency must be preserved.

Why is the new file larger than the original?

The original may already be heavily compressed, the output quality may be high, or the output dimensions may be larger. Try a lower quality, smaller dimensions, or a different format.

Does converting to PNG improve quality?

No. PNG preserves the pixels it receives, but it cannot restore detail that a previous lossy encoding removed. Start from the highest-quality source available.

Technical References