Free · No signup · Runs in your browser

COBOL / RPG Variable Name Converter

Paste COBOL or RPG variable names and get Python snake_case and Java camelCase equivalents instantly — with optional prefix stripping.

COBOL / RPG Names
Python snake_case
Python output will appear here…
Java camelCase
Java output will appear here…

Hyphens become underscores

All hyphens are replaced with underscores before case conversion is applied.

ACCOUNT-BALANCE → account_balance

Numbers are preserved

Numeric segments are kept as-is in both Python and Java output.

ADDRESS-LINE-1 → address_line_1 / addressLine1

Python: everything lowercase

Snake_case: all words lowercase, joined by underscores.

WS-TOTAL-AMOUNT-PAID → ws_total_amount_paid

Java: camelCase

First word lowercase, subsequent words capitalised.

WS-TOTAL-AMOUNT-PAID → wsTotalAmountPaid

Strip prefixes (optional)

Toggle removes WS-, LV-, GV-, LS- working-storage prefixes before conversion.

WS-DATE-OF-BIRTH → date_of_birth / dateOfBirth

Space-separated input

Each token is treated as a separate variable name to convert. Mix lines and spaces freely.

GV-EMPLOYEE-ID → gv_employee_id / gvEmployeeId

Need the full migration, not just variable names?

Language Foundry's transpiler converts entire COBOL and RPG IV codebases to idiomatic Java 21 — data types, business logic, embedded SQL, and all. Variable names are just the beginning.