Convert code between C# and VB.NET using Roslyn, available as a Visual Studio extension, online tool, CLI, and library.
Code Converter is a free, open-source tool that translates code between C# and Visual Basic .NET (VB.NET) using Microsoft's Roslyn compiler platform. It solves the problem of migrating legacy VB.NET projects to C# or incorporating C# snippets into VB.NET codebases by providing accurate, context-aware conversions. The tool is available in multiple formats, including a Visual Studio extension, online converter, command-line interface, and NuGet library.
.NET developers maintaining or migrating projects between C# and VB.NET, particularly those dealing with legacy VB.NET codebases or seeking to learn one language from the other.
Developers choose Code Converter for its high accuracy through full project context analysis with Roslyn, the safety of local processing, and flexibility across multiple integration options—all completely free and open source.
Convert code from C# to VB.NET and vice versa using Roslyn
Uses Microsoft's Roslyn compiler for full project context analysis, ensuring conversions are semantically accurate and reliable, especially for VB.NET to C# migrations.
Available as a Visual Studio extension, online snippet converter, command-line tool, and NuGet library, offering flexibility for different development workflows.
All conversion runs entirely on the user's machine, keeping code secure and private without sending it to external servers, as emphasized in the README.
Continuously improved with a focus on VB.NET to C# conversion quality, addressing the decline in VB.NET support and based on user feedback.
The README explicitly states that VB to C# conversion is much higher quality than C# to VB, making it less reliable for reverse conversions or snippet incorporation.
The command-line version requires Visual Studio 2026 18.0+ to be installed, which can be a barrier for environments without VS or with older versions.
Only converts between C# and VB.NET, lacking support for other programming languages or cross-platform code translation, which restricts its use cases.
Run C# scripts from the .NET CLI.
Roslyn tool that for a given C# program shows syntax tree API calls to construct its syntax tree
A cross platform build and deployment automation system for building projects and executing deployment scripts using C# code.
Compiles C# code by first rewriting the syntax trees of LINQ expressions using plain procedural code, minimizing allocations and dynamic dispatch.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.