Java Clean Architecture Masterclass

Java Clean Architecture Masterclass28-29 May

Join

FastCSV

FastCSV: fast, lightweight, and easy to use β€” the production-proven CSV library for Java.
It’s the most-starred CSV library for Java and trusted by leading open-source projects such as Apache NiFi, JUnit and Neo4j.

javadoc Maven Central Mentioned in Awesome Java

build Codacy Badge codecov oss-fuzz OpenSSF

Features

Here are the top reasons to choose FastCSV β€” see fastcsv.org for the full feature list.

Performance

Benchmark Based on the Java CSV library benchmark suite.

Quick Start

Writing CSV

try (CsvWriter csv = CsvWriter.builder().build(Path.of("output.csv"))) {
    csv
        .writeRecord("header 1", "header 2")
        .writeRecord("value 1", "value 2");
}

Reading CSV

try (CsvReader<CsvRecord> csv = CsvReader.builder().ofCsvRecord(Path.of("input.csv"))) {
    csv.forEach(IO::println);
}

For more examples and detailed documentation, visit fastcsv.org. If you find FastCSV useful, consider leaving a star!

License

MIT

Join libs.tech

...and unlock some superpowers

GitHub

We won't share your data with anyone else.