Generate classes from CSV Beta


This tool generates C# model or stub classes from CSV file. You can select the property naming convention and whether or not to generate a class map.



Input: Paste CSV content below



Settings



Output: Generated Classes


CSV is an old & very popular format for storing tabular data. It has been used in the desktop as well as mainframe. It is a simple & compact format that works really well for tabular data and so is still in use today.
Class Name
The name of the genreated Class.
Language
The language for which you want the classes to be generated. Currently C# is the only option available. But, we intend to extend it to Java in the near future.
Generate Class Map
If selected, a CsvHelper compliant class map is generated.
Generate Class Map On
public class Person
{
    public string FullName { get; set; }
    public int age { get; set; }
}

public class PersonClassMap : ClassMap
{
    public PersonClassMap()
    {
        Map(m => m.FullName).Name("Full Name");
        Map(m => m.age).Name("age");
    }
}
Generate Class Map Off
public class Person
{
    public string FullName { get; set; }
    public int age { get; set; }
}
Property Naming Strategy
Choose the naming strategy of the generated properties. The available options are:-
Cleanse Only
public class Person
{
    public string FullName { get; set; }

    public int age { get; set; }
}
Pascal Case
public class Person
{
    public string FullName { get; set; }

    public int Age { get; set; }
Camel Case
public class Person
{
    public string fullName { get; set; }

    public int age { get; set; }
}
Feedback