Skip to content
CalcWorld

Browse all tools

Image Format Converter

The image format converter changes images between PNG, JPG and WebP in your browser, and can rebuild an image as an SVG made of coloured squares. Nothing is uploaded; the conversion runs on your device.

Sources: MDN Updated

Convert images between multiple formats including SVG vectors, PNG, JPG, and WebP. Process single or multiple files at once.

No files selected

What the SVG output actually is

The SVG option does not trace edges the way vectorising software does. It divides the image into a grid of square blocks and draws one <rect> per block in that block's colour.

The file is real SVG and scales without blurring, but it looks like a mosaic of the original, not a smooth drawing.

How to convert an image to a block SVG

  1. Choose a file and set the output format to SVG (Vector).
  2. Pick a detail level. The block size is 11 minus the level, so the default 5 gives 6 × 6 pixel squares and a 600 × 400 image becomes a 100 × 67 grid of 6,700 squares.
  3. Set Max Colors. With 16 colours each red, green and blue value is rounded to steps 64 apart (256 ÷ √16), so a red value of 200 becomes 192.

Detail 9 uses 2-pixel squares, 60,000 of them for the same image, and detail 1 uses 10-pixel squares, only 2,400. More squares means a finer picture and a bigger file. The colour values run from 0 to 255; the hex converter turns them into the two-digit hex used in colour codes.

Bar chart of how many squares the SVG output draws for a 600 × 400 image: 2,400 at detail 1 (10 px blocks), 3,750 at detail 3, 6,700 at detail 5, 15,000 at detail 7 and 60,000 at detail 9.
Each step up in detail shrinks the blocks, and the number of squares in the file grows fast.

PNG, JPG and WebP conversions

These use the browser's own canvas encoder, toBlob. PNG output is lossless; JPG and WebP are lossy, and the Quality slider (85% by default) sets how much detail they keep.

The slider has no effect on PNG, which has no quality setting. The Resize menu keeps the original size, scales it from 50% to 200%, or takes a custom width and height. A custom size can stretch the picture, so work out a height with the same shape first in the aspect ratio calculator.

Limits of the image converter

Everything runs in your browser tab, so very large images or long batches are limited by your device's memory. The "Download All as ZIP" button does not build a ZIP file; it starts one download per image.

Other tools that sit outside the maths subjects are on the more tools page, including the odds converter.

Image Format Converter: FAQ

Does the SVG option trace my image into smooth shapes?

No. It draws one square per block of pixels, so the result is a mosaic. It scales without blurring, but the edges stay blocky. Tracing software is needed for smooth outlines.

Is PNG to JPG conversion lossless?

No. PNG output is lossless, but JPG and WebP output are lossy at the quality you set (85% by default), so some detail is lost.

Are my images uploaded?

No. The files are read and converted in your browser tab and never leave your device.

Sources