Live demo

Copybook Converter

Paste a COBOL copybook and get Java classes, a JSON Schema, and a sample JSON object back. The conversion runs on this site's Spring Boot backend.

How it works, and the bugs its tests uncovered, are in the Copybook Converter case study.

Supports PIC, OCCURS, VALUE and REDEFINES. One level-01 record, up to 300 lines.

Press Convert to generate Java classes, a JSON Schema and a sample JSON object from the copybook.

The copybook you paste is sent to this site's backend only to produce the output and is not stored. If the server has been idle, the first conversion can take a little longer.