Logo xsd2code++

Advanced Code Generator From XML and JSON Schemas

Integrated with Microsoft Visual Studio 2019


Generate your c# or VB code from XSD or JSON schema



The software allows matching a schema definition to a set of classes and vice versa through the process of converting the process of converting objects to data. Integrated directly into Microsoft Visual Studio, xsd2code++ is a true productivity tool. It allows developers to generate all classes from an XML, XSD or JSON document.


Microsoft Visual Studio Integration



The XML Objects generator of xsd2code++ is integrated into Visual Studio. Simply add a .xsd file or JSON schema file to your C# or VB project then right-click and select "Run xsd2code++". Simple and powerful!

Available for visual studio

vslogo (Pro, Ent, community) 2019, 2017, 2015, 2013, 2012, 2010 & command line

Frameworks supported

.Net 2.0, 4.7x, Net Core 3.1, .Net Standard, Xamarin

Supported languages

100% native .Net C #, VB


XML & JSON serialization

Generates the code to transform your objects into either XML or JSON

Customizable Code

Many reusable code generation options

Royalty Free

The generated code is redistributable without royalties

Learn Faster

with xsd2code++ Free Community edition

Version : 5.2, Size : 9,7 Mb, July, 2020


XML & JSON data binder to .Net code.

The tool creates an optimized code from your XML or JSON schema. Directly integrated into Visual Studio or with a command-line program. The code is generated is clean and clear. It contains strongly typed classes, properties, collections, and enumerations.

Helpful for produce XML/JSON or creating API, POCOs, WCF contract interface, and all kinds of uses. Generated classes let you read and write XML or JSON files in complete correspondence with your schemas.

Many parameters allow you to change the class, property, and variable names. How objects are initialized in the class constructor or in the property getter. Also to define the name of the methods of serialization/deserialization. As well as serialization and encoding options.

Code generation significantly reduces development time and allows you to focus on writing business logic.


Main features

  •  Native .Net xsd to code C# or VB from XML & JSON single or multiple schemas
  •  JSON to c# VB / XML to c# VB / JSON Schema to c# VB / XSD to c# VB
  •  Convert JSON data to Json Schema
  •  Convert XML to XSD Schema
  • Types, observable and hashtable collection.
  •  Automatic properties.
  •  Reading and writing XML or JSON files (Serialization XML, Binary, JSON, MsgPack).
  •  XML encoding (UTF-8/32, ASCII, Unicode and custom encoding).
  •  Change notification INotifyPropertyChange "Databinding" (WPF, Xamarin).
  •  WCF (DataContract/DataMember attributes)
  •  Class name & property Name as Camel case or Pascal Case.
  •  Transposes XSD schema restrictions to attributes like Patterns / RegEx, StringLength
  •  Supports complex schemas with inclusion and import of external schemas
  •  Many options to design the best-generated code (more than 40 settings that persist).
  •  Transform annotations of the XSD schema into documentation in the code (XML Summary).
  •  Lazy Loading pattern.
  •  Partial classes.
  •  Single code file or one file per class.
  •  And more...
Settings to customize generated code

100% native code



The complexity of producing well constructed, reliable class libraries from XML or JSON schema can challenge any project's timeline. The xsd2code XSD & JSON code generation tool substantially streamlines and simplifies a project's development and maintenance time.

The generated code is 100% native and compatible with the DotNet Framework or .Net Core. No external libraries required.


Royalty-Free Distribution



You pay for the development licenses only. The code generated can be distributed royalty-free as part of your product.


Strongly typed objects class generator



Data binding is a process in which schema information items are transformed into strongly typed objects in a .Net language.

The code consists of type definitions and serialize/deserialize methods such as JSON, XML, MessagePack, binary serializer. It support .Net framework, .Net standard, .Net Core 3.0, Xamarin.


Community Edition



Xsd2code community edition is a great way to get started. This edition supports a single schema and does not have all features but you will be able to try for free. Understanding how XML or JSON data binding works and how that can help you.

At any time you can switch from the community edition to the full version with several license models are available. Time-limited License or perpetual fallback license


Command-line tools

xsd2code++ can also be used with the command-line tool for batch conversion needs. For example in case of a large volume of schemas to convert

xsd2code command line tool

Intuitive User Interface

The user interface permits to quickly produce Data Binding code. In the Solution Explorer of Visual Studio, right-click on your schema (should have a .xsd or .json extension) and pick "Run Xsd2Code++" to do the deed. A dialog box titled "xsd2code++ Version 5.x appears and allows you to configure the code generation engine. Customize the generated code depending on your needs (Serialization XML, JSON, LasyLoading, Type of collection, etc.). Then click the "Generate".

A file named the same thing as your XSD or JSON file only ending in Designer.cs will be created. It will contain partial classes, so that you may make another file to extend the class if you so desire.

The parameters are saved in the project. You can, therefore, reopen the configuration screen at any time to change what you need. So once you have created source code you can go back to the settings anytime. Or run the command line as part of your automated build process.

Click on the picture

Try it now

15 Days Free Trial With 100% Features !

Version : 5.2, Size : 9,7 Mb


Focus on your code


Save time and focus on the strategic code of your solution


100% compliant


Classes match 100% to the expected XML or JSON structure




Offer your developments the ability to update the generated code as many times as necessary