Got old COBOL or Fortran? OpenAI's latest models just got much better at migrating it
OpenAI says its newest models are much stronger at building and migrating software in less common languages like COBOL, Fortran, OCaml and Visual Basic. Its COBOL migration test ports programs to C++, Java, Kotlin, Python or Rust and requires byte-for-byte identical output. On that test, GPT-6.1 Sol scored 86.6% at low reasoning effort, up from 5.4% for GPT-5.6 Sol, and 97.9% at higher effort. On MultiLangBench, where a model builds a SQLite-compatible database engine in 20 languages, GPT-6 Astra averaged 87.4%. OpenAI released the benchmark on GitHub and says production migrations still need expert review.
Why it matters
A lot of banking, government and weather software still runs on these languages, and the people who wrote it are retiring. A model that keeps the old behaviour makes modernising much less risky.
Who it's for
Teams maintaining mainframe, scientific or legacy business code, and consultants who do migrations.
How to try it
- Pick one small, well-tested COBOL or Fortran program and save its real outputs as golden test files.
- Ask GPT-6.1 Sol, in Codex or through the API, to port it to your target language and match those outputs byte for byte.
- Watch rounding and missing-record handling: COBOL drops extra decimal digits unless the code asks it to round.
- Have someone who knows the business rules review the diff before it goes anywhere near production.
Plan & availability: GPT-6.1 Sol and GPT-6 Astra through the OpenAI API, and in Codex where your plan includes them. The scores come from OpenAI's own evaluations, not independent tests.
Source: @OpenAI on X
Written by James Whitfield from the original post. Checked Oct 20, 2026. Features, plans and availability can change, so confirm on the source before you rely on it.
legacy-codecobolmigrationgpt-6-1-sol
More ChatGPT tricks
- Codex Cloud can now drive a browser and desktop, so it tests the app it builds · Dec 1
- Copilot team customizations are GA, so stop setting up the same plugins one by one · Nov 23
- VS Code 1.146 deprecates the Local harness, so migrate your Copilot sessions before February · Nov 23
- GPT-Live-1.1 is in the API, and idle voice sessions now cost $0.02 a minute · Nov 21