Skip to content
C To Delphi converter
Branch: master
Clone or download
Latest commit 6658bfb Jun 15, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
Releases - Fix for return statement when followed by empty lines. Dec 14, 2016
Test Add unit tests Jun 15, 2018
C2Delphi.Forms.Main.pas Keep details collapsed by default (in treeview) Nov 15, 2017
C2Delphi.dpr Use SynEdit, add background processing, better parsing Nov 14, 2017
C2Delphi.dproj Convert some common functions to Delphi equivalents May 29, 2018
LICENSE Initial commit Dec 11, 2016 Update Dec 11, 2016
WvN.Pascal.CReader.pas Allow ++i in loops Jun 15, 2018



This tool will convert most of your standard C code. .

Download executable here.

It contains a split view, with C on the left and Delphi on the right. The Delphi code gets updated in realtime when you edit the C code. The editors are kept in sync, so you can easily find how a specific piece of code was converted.

  • The Syntax checks of the generated code is verified. (uses DelphiAST)

  • You can even run the generated code by pressing F9 (uses DWS)

  • You can drag/drop multiple C files to the application. It'll find the .h files that belong to it, and convert all to .pas files in the same folder.


  • If function main exists, a program will be generated. Otherwise a pascal unit with interface/implementation sections.
  • Converts routines and arguments
  • Converts for loops
  • Converts case statements
  • Converts structs
  • Converts enums
  • Converts 1 and 2 dimensional arrays
  • Converts many other common routines to Delphi equivalents (strcpy,strcat,strlen,printf,argv,argc,etc)
  • Converts classes


You can’t perform that action at this time.