Toolbox .net code converter

Convert C# to Python

Simply paste in your C# code below, and this free utility will automatically convert it to its equivalent in Python. We now support .NET 3.5 syntax

Your source code is safe

We do not permanently store any code submitted via this utility - the data you submit is kept only long enough to convert the code and send the result back to you.

Known Issues

  • We've had to remove the automatic clipboard copying (as Flash 10 and above requires user interaction). However, the copy to clipboard link does now work in FireFox 3 and Chrome.
  • Please report any issues you come across! We will work to fix them and contribute them back to the #develop project too.
  • LINQ support is not yet fully reliable. Please post cases that do not work to our feedback forum.

Credits

This code conversion tool is based on source code from the #develop editor, a free open source alternative to Visual Studio .NET.

All our converters

Calling all software architects!

Software Architect 2010

The UK's leading conference for software architects takes place in London from 19-22 October, with dozens of in-depth sessions on design patterns, .NET 4, agile development, architecting for multi-core, testing, and much more. Click here now for more information.

Dedicated servers from UKFast

UKFast

UKFast delivers industry-leading business hosting with an emphasis on security and speed. Did you know? Google rewards fast websites and UKFast is consistently and independently ranked the fastest UK host by Webperf, our speed gives clients the online edge. Find out more...

Community stats

You could join them now

Related book

  • Dive Into Python 3

    Dive Into Python 3

    Mark Pilgrim's Dive Into Python 3 is a hands-on guide to Python 3 (the latest version of the Python language) and its differences from Python 2. As in the original book, Dive Into Python, each chapter starts with a real, complete code sample, proceed...

Want to stay in touch with what's going on? Follow us on twitter or Facebook!