Convert COBOL to Python

Delivering you an intelligent and high quality result in due time!

Benefit from the Ispirer top-notch migration services and robust automated solutions. Foster migration, and optimize the cost and performance of your IT infrastructure by converting your COBOL application to Python with Ispirer.

Migrate COBOL to Python


nGLFly Wizard for automated conversion

NGLFly Wizard offers a range of opportunities for automated COBOL to Python conversion with minimum manual corrections:

  • Free assessment Metrics tool to analyze your database and estimate migration complexity
  • Assistance in NGLFly configuration
  • Automated migration of the entire application, including project files, business logic, GUI and database API
  • Prompt customization of the tool to maximize automation rate
  • Expert support during the entire project

Check all the features by requesting a free trial of NGLFly Wizard.
It is valid for 30 days.

Free trial


Turnkey migration service

Turnkey COBOL to Python migration service provided by Ispirer professionals includes:

  • Migration of the entire application, including project files, business logic, GUI and database API
  • Team of experts skilled in COBOL and Python
  • Tailored migration roadmap from assessment through migration and testing to cutover
  • Smart automation with Ispirer Toolkit
  • Assistance in deployment and integration, performance optimization, new feature development

Drop us a line and we’ll discuss and estimate your COBOL to Python project.

Request a quote

NGLFly Wizard for Automated App Conversion

NGLFly Wizard Logo

NGLFly Wizard is a tool for automated application conversion. This solution makes it possible to translate code from one programming language to another automatically, while preserving the initial functionality of an application. Based on an intelligent proprietary algorithm, the tool analyzes the syntax, semantics, mapping data types, control structures, function calls, and even code structures that do not have equivalents in a target technology. Based on the analysis, nGLFly Wizard applies all the relevant conversion rules from its knowledge base core and translates the source code to the target technology.

NGLFly supports both legacy and most popular programming languages, such as COBOL, Delphi, Informix 4GL, Powerbuilder, C#, Java, Python, JavaScript, and others. To ensure a smooth translation process, our support experts are available to assist with tool configuration or resolve any issues in a timely manner.

High quality

High quality code conversion.

Expert system with 20.000+ conversion rules and 100.000+ automation tests.



Nimble configuration with 300+ parameters and options for effective application code conversion.

Free smart assessment

Free smart assessment

Free assessment Metrics for migration scope and complexity evaluation.

Intuitive and instructive reports

Comprehensive migration analysis

Intuitive and instructive reports for cost-effective post-migration polishing.

COBOL to Python Conversion Demo

Check out how Ispirer Toolkit automatically converts COBOL application.

Drop us a line, if you have any business inquiries or questions regarding your COBOL conversion project. Ispirer experts will demonstrate our solutions and answer any questions you may have!

Contact us

Turnkey Migration Service

The entire conversion process can be divided into several stages:

  • Preparation. During the preparation stage, the focus lies on planning and preparing applications and infrastructure for migration to a new environment or platform. This involves assessing their current state to gauge compatibility with the target environment and defining the migration strategy, timeline, and required resources. Additionally, identifying potential risks and challenges associated with the migration process and devising mitigation strategies are integral parts of this stage.
  • Assessment. During the assessment phase, the team conducts a thorough analysis of the source code to accurately estimate the migration timeframe and cost. As a first step, we apply Metrics - a set of Ispirer’s proprietary assessment tools tailored to different programming languages. These metrics automatically analyze the source application, gathering essential information and generating a comprehensive report. This report combined with the insights gathered during the expert review of the source code serves as the basis for estimating the delivery time and cost of the migration project.

APP Services general

  • Automated conversion with Ispirer Toolkit. Considering the inherent characteristics of the original technology, Ispirer Toolkit can provide varying default levels of automated code conversion. Importantly, Ispirer experts can iteratively customize the tools to meet the specific properties and patterns of the source code and thus increase the level of automated conversion.
  • Post-conversion refinement. Often an application may contain code segments that are impossible or ineffective to migrate automatically. In such a case, our team of Ispirer experts leverages their extensive knowledge and expertise to meticulously execute the manual migration of the remaining code. Moreover, this stage involves fine-tuning the application to improve its performance in the new environment. This may include optimizing resource allocation, tuning database configurations, and addressing any performance bottlenecks.
  • Functional testing. Functional testing ensures that the migrated application behaves as expected and meets the functional requirements in the new environment. The Ispirer experts run hundreds of tests to ensure that the converted application is reliable and meets user requirements, business objectives, and industry standards.

Why choose conversion over developing a new app?

Seasoned Team

Same functionality, new application

Migration does not require labor-intensive development of new functionality from scratch. Your application will be converted to a new technology while maintaining the original functionality

Enhanced efficiency

Architecture preserved or modified

By default, automated conversion implies preserving the initial architecture which is easier to maintain. It is also possible to transform the app architecture, for example, from desktop to the web and thus improve accessibility and scalability


Legacy System Transformation

Migrating legacy systems to modern architectures or platforms can future-proof your application, making it easier to maintain, update, and extend in the long term

Advanced security

The speed of conversion

Migrating an application is much faster than creating a new one from scratch. Automated migration with Ispirer Toolkit minimizes manual effort and may speed up the delivery by 2-3 times


Performance and Scalability

Through conversion, you can optimize the application's architecture and infrastructure, improving scalability and performance without the need to rebuild everything

Advanced security

No need for documentation

To perform the conversion, we go by your source code. There is no need to have detailed documentation in place to start the conversion as is the case with development

Looking for COBOL to Python Conversion Services?

Drop us a line and we’ll estimate your project for free!

Request a quote

Conversion Samples of COBOL to Python

Ispirer Toolkit analyzes all object dependencies during the conversion process and provides not only line-by-line conversion, but resolves type conversions as well. In addition, the software understands and transforms the necessary inheritance dependencies. It parses the entire source code, builds an internal tree with all the information about the objects, and uses it in the migration process.

To convert structures, we have implemented additional type conversion classes to store variable sizes to convert redefines and arrays so that they work similar to COBOL logic. For more information review the code samples below.

Common variables declaration structure conversion:

  2. 01 varlnk.
  3. 05 varlnk-1 PIC 999.
  4. 05 varlnk-2 PIC X(10).
  5. 05 varlnk-3 PIC 9(7).
  2. Varlnk = VarlnkType()
  4. class VarlnkType(Record):
  5. Varlnk_1 = None
  6. Varlnk_2 = None
  7. Varlnk_3 = None
  8. def __init__(self):
  9. self.Varlnk_1 = IntField(3)
  10. self.Varlnk_2 = StrField(10)
  11. self.Varlnk_3 = IntField(7)
  12. super().__init__()

Common REDEFINES conversion:

  2. 01 var1 PIC XXX VALUE '111'.
  3. 01 var2 REDEFINES var1.
  4. 05 vvv1 PIC 9.
  5. 05 vvv2 PIC 99.
  2. Var1 = StrField(3,'111')
  3. Var2 = Var2Type()
  5. Var2.Redefine(Var1);
  7. class Var2Type(Record):
  8. Vvv1 = None
  9. Vvv2 = None
  10. def __init__(self):
  11. self.Vvv1 = IntField(1)
  12. self.Vvv2 = IntField(2)
  13. super().__init__()

Common array conversion:

  2. 01 var5.
  3. 05 var5-occurs OCCURS 2 TIMES.
  4. 10 var5-occurs-txt PIC X(6) VALUE ' TEXT1'.
  2. Var5 = Var5Type()
  4. class Var5OccursType(Record):
  5. Var5OccursTxt = None
  6. def __init__(self):
  7. self.Var5OccursTxt = StrField(6,' TEXT1')
  8. super().__init__()
  11. class Var5Type(Record):
  12. Var5Occurs =[]
  13. def __init__(self):
  14. for i in range(1,2):
  15. obj = Var5OccursType()
  16. self.Var5Occurs = self.Var5Occurs+[obj]
  18. super().__init__()

COBOL call chain with PERFORMs conversion:

  2. TopLevel.
  3. DISPLAY "In TopLevel. Starting to run program"
  4. PERFORM OneLevelDown
  5. DISPLAY "Back in TopLevel.".
  6. STOP RUN.
  8. OneLevelDown.
  9. DISPLAY ">>>> Now in OneLevelDown"
  10. PERFORM TwoLevelsDown
  11. DISPLAY ">>>> Back in OneLevelDown".
  13. TwoLevelsDown.
  14. DISPLAY ">>>>>>>> Now in TwoLevelsDown."
  15. PERFORM ThreeLevelsDown.
  16. DISPLAY ">>>>>>>> Back in TwoLevelsDown.".
  18. ThreeLevelsDown.
  19. DISPLAY ">>>>>>>>>>>> Now in ThreeLevelsDown".
  2. class CobSmplCbl:
  3. CobSmplCblCompatibility = None
  4. def __new__(cls):
  5. if not hasattr(cls,'instance'):
  6. cls.instance = super(CobSmplCbl,cls).__new__(cls)
  7. return cls.instance
  9. def __init__(self):
  10. self.CobSmplCblCompatibility = Compatibility()
  11. self.CobSmplCblCompatibility.GetAllMethods(self)
  12. self.CobSmplCblProcedureDivision()
  14. def CobSmplCblProcedureDivision(self):
  15. self.CobSmplCblCompatibility.InitializeMethodsQueue()
  16. self.CobSmplCblCompatibility.CallNextMethod(self,True)
  18. def Toplevel(self):
  19. print("In TopLevel. Starting to run program")
  20. self.CobSmplCblCompatibility.PerformThru(self,"Oneleveldown")
  21. print("Back in TopLevel.")
  22. exit()
  23. self.CobSmplCblCompatibility.CallNextMethod(self,True)
  25. def Oneleveldown(self):
  26. print(">>>> Now in OneLevelDown")
  27. self.CobSmplCblCompatibility.PerformThru(self,"Twolevelsdown")
  28. print(">>>> Back in OneLevelDown")
  29. self.CobSmplCblCompatibility.CallNextMethod(self,True)
  31. def Twolevelsdown(self):
  32. print(">>>>>>>> Now in TwoLevelsDown.")
  33. self.CobSmplCblCompatibility.PerformThru(self,"Threelevelsdown")
  34. print(">>>>>>>> Back in TwoLevelsDown.")
  35. self.CobSmplCblCompatibility.CallNextMethod(self,True)
  37. def Threelevelsdown(self):
  38. print(">>>>>>>>>>>> Now in ThreeLevelsDown")
  39. self.CobSmplCblCompatibility.CallNextMethod(self,True)

Copy statement conversion:

During the conversion stage, the code from the copy files is included in the program and replaced with the appropriate copy statements, thereafter the program converts the entire code.

If statement conversion:

  2. if var3 = var4
  3. move "D" to var3
  4. else
  5. move " " to var3.
  2. if Var3.Value == Var4.Value:
  3. Var1.Value = "D"
  4. else:
  5. Var3.Value = " "

PERFORM UNTIL statement conversion:

  2. PERFORM UNTIL IterCount = 5
  3. ADD 1 TO IterCount
  2. while (not(Itercount == 5)):
  3. Itercount += 1

Download Sample Code

You have just examined only a piece of the COBOL to Python conversion sample. You can download the entire application migration sample for free by filling out the form. Once you get the code sample, you will be able to:

  • Evaluate the quality of conversion after customization, i.e. adding new conversion rules to the Ispirer software.
  • Analyze and compare the source sample with your code to understand which components of your application can be automatically converted using Ispirer Toolkit.
  • Run, play with and test an application containing nearly 500 lines of code.

See for yourself that Ispirer Toolkit can automatically convert not only a single piece of code, but an entire application. Most likely, complex code will require customization of the toolkit, but our experts can add new conversion rules within 3-5 business days. As a result, using Ispirer Toolkit you will get readable and maintainable code of manual conversion quality in the shortest time possible.

Snatch a totally free opportunity to see the high efficiency of Ispirer Toolkit!

Get your sample code
Enter your name.

Enter a valid e-mail address.

Select your country.

Invalid input.

Conversion of Various COBOL Dialects

  • Micro Focus COBOL
  • Realia COBOL
  • Fujitsu COBOL
  • Enterprise COBOL
  • GnuCOBOL
  • Microsoft COBOL
  • isCOBOL
  • COBOL/400
  • Hitachi COBOL

Accelerating our customers’ application modernization journey

The customer received a modernized application in C#, which is a feature-for-feature equivalent to the original Delphi application. Thus getting the ability to easily maintain and enhance the newly migrated code.

December 04, 2018

The company develops state-of-the-art automation systems for operation, disposition, monitoring and control for all industries. The customer needed to reanimate their software by moving from Delphi to C#.

Our customer ia a healthcare organization dedicated to improve funding and clinical performance of hospitals and healthcare systems. The company's requirement was to get the application on the new C# .NET platform.

previous arrow
next arrow

Why Migrate with Ispirer

With a proven track record validated by both time and satisfied clients, Ispirer software and services stand as the pinnacle choice for database migration and application modernization. Leveraging years of experience and client feedback, Ispirer guarantees smooth transitions and optimized operational efficiency for businesses of all scales.

  • Seasoned team. Ensuring high security and performance standards is what we do best, thanks to our impressive experience in building reliable and scalable solutions.
  • Technology expertise. Having 20+ years of experience our team has gained a wide pool of expertise in various programming languages from the rarest to the most popular ones.
  • Top-notch data security. We comply with ISO 27001 security management requirements with comprehensive policies and processes, advanced security technology, and skilled professionals.
  • Proprietary tools. In migration projects we employ Ispirer proprietary tools which underscores our dedication to delivering solutions of utmost reliability and performance. Compiled on a daily basis, this toolkit continually integrates dozens of new conversion rules, thereby consistently enhancing the automation capabilities. Find out more about our solution in the infographic:
Infographics showing how automatic application and database migration brings benefits

What Our Customers Say

Get in touch with us!

Have questions about migration from COBOL to Python?

Contact us