PSD to PNG
Published Updated
Save the merged image stored inside a Photoshop file as a lossless PNG, with any transparency kept. It reads 8-bit RGB, grayscale, indexed and bitmap files and ignores layers; 16-bit, CMYK and files above 40 million pixels are refused.
A PSD holds two pictures
Photoshop's own format keeps the layers, and a separate merged image in its Image Data section. Adobe's file format specification describes that section as the pixel data, written plane by plane (all red, then all green, then all blue), raw or compressed. This converter never touches the layers. It decodes the merged picture and writes it out as PNG.
That is quick and light on memory, and it explains the Maximize Compatibility requirement: a file saved without it has no merged picture to read.
Test files and results
Minimal PSD files were built by hand to the layout in the specification, then run through the page's own loader in Google Chrome 156. They are not Photoshop exports.
| Test file | Result |
|---|---|
| 8-bit RGB, 200 x 100 | Converted. Fully opaque PNG of 1,598 bytes |
| 8-bit RGB plus alpha, left half clear | Converted. Left pixel (0, 0, 0, 0), right pixel opaque |
| 16 bits per channel | Refused: only standard 8-bit files are supported |
| CMYK, 8-bit | Refused: the colour mode cannot be read |
| 9000 x 5000 (45 million pixels) | Refused as too large, though both sides are under 10,000 |
| 10001 x 10 | Refused: a side above 10,000 pixels |
Layers, missing merged images and other colour modes
More generated PSD files went through the page's own converter, measured in Google Chrome 157, Firefox 155 and Playwright's WebKit build (not the Safari app). Some were written by ag-psd, the PSD library this page uses, and some built byte by byte. The three browsers agreed on every row except where the row names them.
| Test file | Result |
|---|---|
| Three layers: red background, a hidden blue square, a green square in Multiply mode; merged image saved to match | The saved merged image: no blue square, and a black square where green multiplies red |
| The same layers with a stored merged image of flat grey | Flat grey. The layers are not read |
| The same layers, written with no merged image given (ag-psd then stores one of zeros) | A black picture, with no message |
| A layered file that ends before its image data | Refused: "This file couldn't be converted — it may be corrupted." |
| Colour 200, 100, 50 at alpha 255, 128, 64, 10 and 1 | Alpha kept. Colour 200, 100, 50; 199, 100, 50; 199, 100, 48; 179, 77, 26; 0, 0, 0 in Chrome 157 and the WebKit build. Firefox 155 gave 199, 102, 52 at alpha 128 and 179, 77, 51 at alpha 10 |
| A flat RGB file with a fourth channel and no layers | The fourth channel becomes transparency: where it is 0 the PNG is fully transparent |
| Grayscale, 8-bit | The same grey levels (0, 40 and 252 at the test points) |
| Indexed colour, RLE-compressed / uncompressed | The palette colours as stored / refused as possibly corrupted |
| Bitmap, 1 bit per pixel | Black and white as stored |
| 6,000 x 6,000 RGB, 36 million pixels (4,224,156-byte PSD) | PNG after 0.37 s in Chrome 157, 0.59 s in Firefox 155 and 0.55 s in the WebKit build; 715,555, 2,239,819 and 646,644 bytes |
Times run from choosing the file to the finished PNG, one run each. The PNG keeps transparency because the format has an optional alpha channel. The faint colours drift because the test file stores those pixels blended with white and the reader takes the blend out again, which loses precision as alpha falls; the canvas adds its own rounding, which differs in Firefox.
The first rows follow from how the reader works: the ag-psd documentation says the library does not generate a new composite from the layer data, so the PNG is only as current as the merged image the file holds.
Converting a PSD
Step 1
Drop the .psd file
There is no settings screen. Conversion begins on selection, and the file name is shown with a spinner.
Step 2
Wait for the limits check
The header is read first, without decoding any pixels. Most refusals name the problem and how to fix it in Photoshop.
Step 3
Download the PNG
The card shows the pixel size. The saved name is the PSD's name with .png in place of .psd.
Preparing the file in Photoshop
Limits are checked in this order, before the image is decoded:
- File size no more than 300 MB.
- A readable header; colour mode RGB, grayscale, indexed or bitmap, never CMYK, Lab, duotone or multichannel.
- Width and height each 10,000 pixels or less, and 40 million pixels in total.
- At most 8 bits per channel.
A photo with no transparency is smaller as a JPG, which PSD to JPG writes with a white fill. To crop the result before use, try Crop Image.
PSD to PNG questions
Does the PNG keep transparency?
Yes, when the merged image in the file carries an alpha channel. A hand-built 4-channel test file came out with a clear left half, while a 3-channel one was fully opaque. A Photoshop-made file was not available to test.
Can I export one layer, or a hidden layer?
No. Layer data is skipped completely, to save memory, so you get the merged picture as it was last saved. To export a single layer, flatten a copy in Photoshop with only that layer visible.
Why was my 16-bit file refused?
The code's own notes record that the PSD reader hands back an empty white canvas for deeper-than-8-bit files and reports no error. A refusal is safer than an empty picture that looks like a success. Set Image > Mode > 8 Bits/Channel and re-save.
Why is there no quality or size setting?
PNG is lossless, so there is no quality to choose, and the output has the same width and height as the PSD. To shrink it afterwards, use PNG Compressor.
Why is my PNG black, or refused, when the PSD has layers?
The converter shows the merged image stored in the file, and it has nothing else to draw. In a test, a layered file whose merged image was left empty came out solid black, and one that ended before its image data was refused as possibly corrupted. Save the file from Photoshop with Maximize Compatibility on, so it holds a merged image, and retry.
Is my PSD uploaded?
No. The file is read and decoded in the page. No request carries it.
Why does the PNG not match my layers?
The converter reads the merged image stored in the PSD and never the layers. A test file with red and green layers but a flat grey merged image came out flat grey in Chrome 157, Firefox 155 and the WebKit build. Open and save the file in Photoshop to refresh the merged image.
Why is part of my PNG transparent when the PSD has no transparency?
An extra channel can cause it. A flat RGB test file with a fourth channel that was 0 on its right half came out with that half fully transparent in all three browsers, because the reader takes the fourth channel as transparency. Delete the extra channel in Photoshop and save before converting.
Do grayscale, indexed and bitmap PSDs convert?
Yes, with their values unchanged in the tests: grey levels 0, 40 and 252 stayed 0, 40 and 252, three palette colours came out as stored, and a 1-bit file stayed black and white. An indexed file with uncompressed image data was refused as possibly corrupted.