GIMP Save vs Export: Keep Layers Editable, Ship Flattened Images
Learn when to save as XCF and when to export as PNG or JPEG, so your layers survive and your web files are ready.
10 Feb 2026, 12:44 UTC

The problem: layers vanish after export
You spend an hour adjusting layers in GIMP, choose File > Export As, write a PNG, and quit. The next day you reopen the PNG and every layer is merged into one flat image. The layered work is gone unless you also saved a GIMP project file.
Takeaway: save your work as XCF while editing, and export a flattened PNG or JPEG only when you need a final image. Keep both files.
Save as XCF for continued editing
XCF is GIMP's native file format. It stores layers, channels, paths, guides, masks, and selection data so you can reopen the file and keep editing. "Flattened" means all visible layers have been merged into a single image; XCF files are not flattened. Saving as XCF does not create a web-ready image, and browsers or most image viewers cannot open XCF files.
Export As creates a flattened copy
Export As writes PNG, JPEG, WebP, and other raster formats. The export process flattens the layer stack into one image. PNG preserves transparency but still discards the layer structure. JPEG drops transparency entirely and applies lossy compression. After choosing a format, GIMP shows format-specific options, such as PNG compression level or JPEG quality. Once exported, you cannot reopen that file in GIMP and recover the original layers.
Worked example: save, export, verify
- Open your multi-layer image in GIMP.
- Choose File > Save As or File > Save, name it
project.xcf, and save. - Choose File > Export As, name it
project.png, and click Export. - In the PNG export options dialog, accept the defaults or adjust compression, then export.
- Close GIMP.
- Reopen
project.xcf: your layers, masks, and guides should still be editable. - Reopen
project.png: you should see one flattened layer.
Menu labels and default folders can differ between GIMP 2.10 and GIMP 3.x. Check Help > About to confirm your installed version before following a tutorial written for another release.
Comparison: XCF versus exported formats
| Action | Format | Layers preserved? | Web-ready? | Reversible to layers? |
|---|---|---|---|---|
| Save As | XCF | Yes | No | Yes |
| Export As | PNG, JPEG, WebP | No | Yes | No |
Trade-offs and limitations
- XCF files are usually larger than exported PNG or JPEG files.
- XCF is not suitable for publishing on websites or sending to clients who do not use GIMP.
- Exporting is one-way for layer data: once flattened, the layer stack cannot be restored from the exported file.
- JPEG export does not support transparency; transparent areas become the background color chosen in the export dialog.
Practical closing habit
Keep both files. Save an XCF as soon as you start a project and save it again after major changes. Export a PNG or JPEG only when you need a final image for the web, email, or print. Before closing GIMP, confirm the XCF exists and reopen it if you are unsure whether your layers are still intact.
0 replies
A thoughtful contribution can make all the difference. Be the first to share one.