Images and files
Join images as a PNG collage
Arrange two to four PNG, JPEG or WebP images in a row, a column or two columns and create a PNG collage with your tile width, gap and background.
PNG/JPEG/WebP, 4 MiB each, 8 million source pixels total. Tile width 1–1024, gap 0–100 pixels. Transparent background or #RRGGBB.
Result
Formula / calculation:
Aspect ratio is retained with nearest-neighbour sampling. PNG output only, up to 8 million pixels and 8 MiB. No cropping or proof of colour fidelity or anonymity. Visible image data remains.
Decimal results are approximate. Inputs stay in this browser tab.
Sources
How it works
Aspect ratio is retained with nearest-neighbour sampling. PNG output only, up to 8 million pixels and 8 MiB. No cropping or proof of colour fidelity or anonymity. Visible image data remains.
Worked example
2 images, tile width 300, gap 10.
About this calculation
This tool joins two to four PNG, JPEG or WebP images into one PNG collage. You arrange the pictures in a row, a column or two columns and set the tile width, the gap between tiles and the background, which can be transparent or a colour written as #RRGGBB.
Each source file may be up to 4 MiB, and all sources together up to 8 million pixels. Tile width runs from 1 to 1024 pixels and the gap from 0 to 100 pixels; the worked example uses 2 images, a tile width of 300 and a gap of 10.
Images keep their aspect ratio and are scaled with nearest-neighbour sampling, without cropping. Output is PNG only, up to 8 million pixels and 8 MiB. Visible image data remains, and no colour fidelity or anonymity is claimed.
Frequently asked questions
How do I join images into a collage?
Choose two to four PNG, JPEG or WebP images, arrange them in a row, a column or two columns, and set the tile width, gap and background. The tool then creates a single PNG collage.
What are the size limits for an image collage?
Each source image may be up to 4 MiB, with 8 million source pixels in total. Tile width is 1 to 1024 pixels, the gap 0 to 100 pixels, and the PNG output is limited to 8 million pixels and 8 MiB.
Can the collage have a transparent background?
Yes. The background can be transparent or any colour entered as #RRGGBB.
Are images cropped or stretched in the PNG collage?
No. Images are not cropped, and their aspect ratio is retained when they are scaled with nearest-neighbour sampling.
Which file formats does the collage tool produce?
The collage itself is always a PNG. Alongside it, the tool lists JSON, TXT and HTML files.
What settings does the collage example use?
The worked example joins 2 images with a tile width of 300 and a gap of 10 pixels.