Introduction
An .afphoto file is the working file of
Affinity Photo, the photo editor made by
Serif. It keeps pixel layers, adjustment and live filter layers, masks, text and
vector shapes, so the work can be edited again later.
The Affinity programs share one underlying document format, so Affinity Designer and Affinity Publisher can open Affinity Photo files too. The format is not published; to use the work elsewhere it is exported, for example as PSD, TIFF or PNG.
Structure
The layout is Serif’s own binary format and has not been documented. Files start
with the bytes 00 FF 4B 41 and hold a table of internal, zlib-compressed
files, the main one being doc.dat. Files from newer versions of Affinity
Photo may not open in older ones.
The little that public reverse engineering has found is on the container reference page.
Not described
Serif has never published the Affinity file format. The container page follows a 2015 reverse-engineering write-up (mostly guesses)
and PhotoRec’s file_afdesign.c.
Unknown
- Reference and viewer: almost everything beyond the container: the meaning of the version field; what changed in Affinity 2 and the 2025 Affinity app; how raster pixels are stored; adjustments, masks and blend values; the preview; and any compression beyond zlib. The page marks each tag by how confident the source is. There is no plugin, so the viewer shows nothing yet.
Links
Software
- Affinity Photo – Serif’s photo editor, which makes these files (Windows, macOS, iPadOS)
- Affinity Designer – Serif’s vector editor, which opens Affinity Photo files (Windows, macOS, iPadOS)
- Affinity Publisher – Serif’s page layout program, which opens Affinity Photo files (Windows, macOS, iPadOS)
Reference
- AFDesignLoad file format notes – Nick Beeuwsaert’s 2015 reverse-engineering notes on the Affinity container