Paste or upload a COBOL copybook and instantly turn PIC clauses, COMP-3 fields, OCCURS, REDEFINES, and old record layouts into a clean modern field map.
π Runs in your browser. Your copybook never leaves your computer.
FROM THIS
05 BALANCE PIC S9(7)V99 COMP-3.
β
TO THIS
DECIMAL(9,2)5 bytes β’ packed decimal
01
Give it a copybook
β¬
Drop a .CPY, .COB, .CBL, or .TXT file here
or click to choose a file
OR PASTE IT
02
Hereβs whatβs really in it
Fields0
Estimated record bytes0
Packed / binary0
Warnings0
Hover over a row for the plain-English explanation.
Level
Field
PIC
Usage
Bytes
Position
Modern type
Notes
Suggested relational schema β review OCCURS/REDEFINES before production use.
Readable sample structure based on the copybook hierarchy.
Flattened header names for quick exports.
π§
Built for legacy reality β not toy examples.
COBOL X-Ray calculates what should be deterministic, then presents it in a way modern developers, analysts, testers, and data teams can actually use.
Help improve COBOL X-Ray
Was this useful? Your feedback is optional. Uploaded file or source contents are never included in feedback.