.PSG

PSG File

AFP Page Segment File
Ask a question
QUICK ANSWER

A PSG file is an IBM AFP page segment - a binary resource storing a logo, signature, or graphic used in high-volume mainframe document printing. To view one, you need enterprise AFP tools such as Broadcom AFP Workbench or OpenText Output Transformation Server. End users rarely encounter this format; it belongs to IBM z/OS and IBM i print production environments.

Developer: IBM Category: Layout Files Open standard MIME: application/vnd.afpc.modca-pagesegment
OPENS ON Windows Linux
Related: .OXPS · .PUB · .IDML · .INDD

On this page

19k+ extensions indexed
Last reviewed Jul 27, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the PSG file format?

A .psg file is an AFP (Advanced Function Presentation) page segment - a reusable binary resource used in IBM high-volume print systems. Page segments are pre-composed objects such as a company logo, a signature, a stamp, or a barcode, stored once and referenced many times across the pages of a large print stream.

The format follows the AFP/MO:DCA (Mixed Object Document Content Architecture) standard, first published by IBM in 1984. Every structured field in the file opens with the byte 0x5A - the universal AFP structured-field introducer - followed by a length field and a three-byte field identifier. A page segment begins with a Begin Page Segment (BPG) structured field and closes with an End Page Segment (EPG) field. Inside, the content may be IOCA raster image data, GOCA vector graphics, BCOCA barcode objects, or coded text, all encoded in big-endian binary.

.psg files are produced and consumed by AFP composition and print management software rather than by end users directly. They are managed as assets alongside other AFP resources such as .ovl overlays and .fnt font files. Common environments include IBM z/OS and IBM i (AS/400) mainframe print workflows, where millions of transactional documents - bank statements, insurance policies, utility bills - are generated each day. AFP Workbench Viewer and OpenText AFP tools can display .psg resources.

Security & safety

RISK: LOW

PSG is a passive binary data file with no executable code. It is an enterprise IT format; no known malware uses this extension or format. The main risk is data corruption in legacy migration workflows.

Format details

in a nutshell
FULL NAMEAFP Page Segment Fileaka IBM AFP Page Segment, MO:DCA Page Segment
DEVELOPERIBMsince 1984 (AFP / Advanced Function Presentation first published by IBM)
CATEGORYLayout Files
MIME TYPEapplication/vnd.afpc.modca-pagesegment
TYPEBinary AFP/MO:DCA structured-field resource (page segment)
STANDARDOpen · royalty-free
This extension is also used by…
  • PlayStation Save Game (various) - Some PlayStation emulators and game utilities use .psg for save-game or memory card data files; unrelated to IBM AFP.
MAGIC BYTES · FILE SIGNATURE
OFFSET
00
HEX
5A
ASCII
Z
Every AFP structured field (including page segment files) starts with 0x5A (decimal 90), followed by 2 bytes of record length and a 3-byte structured field ID. The page segment begin delimiter is structured field type X'5A' followed by 0x00 0x0A followed by the Begin Page Segment (BPG) structured field identifier X'D3 A8 5F'.

Programs that open PSG files

Windows2 apps
AFP Workbench Viewer Paid Enterprise AFP viewer/editor from Broadcom (acquired from ASG); open PSG to view the page segment content.
Optio / OpenText AFP tools Paid OpenText Output Transformation Server and related tools read/convert AFP streams including PSG resources.
Linux1 app
afptools / libafp (open source) Open-source Community tools for parsing and inspecting AFP structured fields including PSG resources on Linux.

Technical details

deep spec
StandardAFP/MO:DCA (Mixed Object Document Content Architecture - Presentation)
DeveloperIBM (standard published 1984 with Advanced Function Presentation)
Magic byte0x5A at offset 0; universal AFP structured-field introducer byte
Byte orderBig-endian (IBM mainframe convention)
Content typesIOCA raster images, GOCA vector graphics, BCOCA barcodes, or coded text
Begin/end delimitersBegin Page Segment (BPG) and End Page Segment (EPG) structured fields
CompressionNone at container level; internal IOCA raster data may use IBM MMR/G4 or JPEG
Typical size1 KB-10 MB (text objects are small; raster images can be large)
Operating environmentsIBM z/OS, IBM i (AS/400); also readable on Windows and Linux via AFP viewer tools
Usage patternReusable resource referenced repeatedly across pages; not an end-user document format
Common contentCompany logos, signatures, stamps, and barcodes in high-volume transactional print streams
Color depth1 bpp (bilevel IOCA) to 32 bpp color, depending on enclosed image content
Released1984 (AFP / Advanced Function Presentation first published by IBM)
Open standardYes · royalty-free
Specificationwww.afpconsortium.org

PSG conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with PSG files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about PSG files.

Frequently asked questions

What is a PSG file?
An IBM AFP page segment - a binary resource containing reusable image or graphic data (logo, signature, background) used in mainframe/midrange high-volume document printing. Not a typical end-user format.
How do I open a PSG file?
Use enterprise AFP tools such as Broadcom AFP Workbench or OpenText Output Transformation Server. These are specialized products for AFP print workflows, not general-purpose viewers.
Can I convert a PSG to PDF or TIFF?
Yes, via AFP-to-PDF conversion tools. The PSG is typically processed as part of a larger AFP print job; enterprise tools like Broadcom AFP Workbench can render and convert the output. Open-source afptools can also parse the binary structure.
Who uses PSG files?
Print production and IT staff working with IBM z/OS or IBM i (AS/400) document output systems - primarily banks, insurance companies, utilities, and government agencies running high-volume statement or bill printing.

References

1IANA MIME - application/vnd.afpc.modca-pagesegmentwww.iana.org
2Wikipedia - MO:DCAen.wikipedia.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.NOMEDIAAndroid No-Media Marker File
7.RPMSGRestricted Permission Message
8.TMPTemporary File
9.MDMarkdown Document
10.BINCD/DVD Disc Image (BIN/CUE)

Related extensions

.OXPSOpenXPS Document (Open XML Paper Specification)
.PUBMicrosoft Publisher Document
.IDMLAdobe InDesign Markup Language
.INDDAdobe InDesign Document
.XPSXML Paper Specification Document
.BTWBarTender Label Document (barcode/label design file)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z