Format Detector
Paste any RPG source code and instantly identify its format — Ctrl+Enter to run
Side-by-Side Reference
Six common patterns shown in both formats — bookmark this page
Every pair shows functionally equivalent code. Fixed-format uses rigid column positions (spec type in column 6; fields occupy precise character ranges up to column 80). Free-format uses readable keywords and statement-ending semicolons. Both compile with modern ILE RPG compilers on IBM i.
Key Differences
What actually changes when you move from fixed to free format
;—identical to C, Java, and most modern languages.
* in column 7 makes the entire line a comment. No inline comments possible.
// starts a comment anywhere on a line, including mid-line.
+ in col 76.
; regardless of line breaks.
**FREE keyword since IBM i 7.2 (2014).
/FREE…/END-FREE blocks in the same source member.
**FREE on line 1 means the entire member is fully free. No spec letters allowed.
We handle both formats — and everything in between
Language Foundry achieves a 99.7% handle rate across 1,739 RPG files, including GOTO/TAG pairs, cycle programs, and multi-format source members that mix fixed-form specs with /FREE blocks. Whether your shop is still on fixed-format or has migrated to **FREE, the transpiler handles it without manual preprocessing.