Canddi

Keeping it transparent in Photoshop

A transparent background lets you place a cut-out subject over another image or colour. In Photoshop, creating that transparency and preserving it in an exported file are separate steps. A good selection can still lose its transparent background if you choose a format that does not support it.

Create transparency with a layer mask

Work on a copy of your image and keep an editable PSD master. Select the subject you want to retain, then add a layer mask to hide the surrounding background. A mask lets you refine the cut-out without permanently deleting those pixels.

Hide any solid background layers underneath the subject. Photoshop’s checkerboard normally indicates transparent areas; it is a display aid, not a pattern that should appear in the exported image. If a checkerboard is already part of a downloaded picture’s pixels, saving that picture as PNG will not remove it.

Why the edges matter

Anti-aliased edges can contain partially transparent pixels that make a curve look smoother. Hair, soft shadows and translucent objects may also need intermediate opacity values. Preserving those values helps the subject blend with its new background.

Inspect the cut-out over both a light and a dark temporary background. A pale fringe on a dark background can reveal leftover colour from the original photograph. Refine the mask or edge treatment before export; changing the file extension cannot repair the cut-out.

Choose a format for the result

Common transparency choices
Format What to check
JPEG Does not preserve transparency. Use it when a solid background is acceptable.
GIF Uses a limited palette and on/off transparency. Soft, partially transparent edges cannot be retained as smooth alpha transparency.
PNG-8 Uses an indexed palette of up to 256 colours. Transparency handling depends on the exporter and settings; inspect the actual output.
Full-colour PNG Can preserve partial transparency and detailed colour. A useful starting point for cut-outs with soft edges.

PNG-8 is not inherently incapable of partial transparency: the PNG specification permits alpha values for palette entries. An export option may still restrict how transparency is saved. Avoid treating one application’s export result as a limitation of the whole format.

Export and test a transparent PNG

  1. Save the layered PSD first so the mask remains editable.
  2. Choose File > Export > Export As, select PNG and enable Transparency. Start without the smaller-file 8-bit option when checking detailed colour and soft edges.
  3. Set the pixel dimensions needed for the destination and export a copy.
  4. Reopen the exported file and place it over light and dark backgrounds. Check the edge, shadow and any translucent areas at the intended display size.
  5. Compare a smaller or palette-based export only if it still meets the visual requirements. Keep the version that balances quality and size for your use.

In the older Save for Web (Legacy) workflow, PNG-24 with Transparency enabled is the familiar full-colour option. File size varies with dimensions, image detail and export settings; there is no universal size ranking that applies to every photograph.

For reference, see Adobe’s export settings guide and the PNG specification.

Build your Photoshop skills

Learn selection, masking and image-production workflows with Academy Class Photoshop courses.