http://opencsv.sourceforge.net/
Answer from Francis Upton IV on Stack OverflowSourceForge
opencsv.sourceforge.net
opencsv –
Opencsv is an easy-to-use CSV (comma-separated values) parser library for Java. It was developed because all the CSV parsers at the time didn’t have commercial-friendly licenses.
FastCSV
fastcsv.org
Welcome to FastCSV | FastCSV
FastCSV is a high-performance CSV parser and writer for Java licensed under the MIT open source license. It is designed to not only be fast and lightweight but also to be compliant with the CSV specification RFC 4180.
Repository https://github.com/osiegmar/FastCSV
05:57
How to parse CSV files in Java - YouTube
06:33
How to read CSV files in Java with OpenCSV - YouTube
09:12
Java read CSV File 📰 - YouTube
04:55
read large csv files in java using open csv library part-2 - YouTube
08:27
read large csv files in java using open csv part-1 - YouTube
21:46
Introduction to CSV Data Parsing in Java | How to parse the data ...
Stack Abuse
stackabuse.com › libraries-for-reading-and-writing-csvs-in-java
Libraries for Reading and Writing CSVs in Java
February 20, 2019 - As with all libraries associated with Apache, it operates with an Apache license, meaning it can be used, distributed, and modified freely. Reading and Writing CSVs in Java with Apache Commons CSV · OpenCSV is one of the simplest and easiest CSV parsers to understand, using standard Reader/Writer classes and offering a CSVReader implementation on top.
Apache Commons
commons.apache.org › proper › commons-csv › apidocs › org › apache › commons › csv › CSVParser.html
CSVParser (Apache Commons CSV 1.14.2-SNAPSHOT API)
Creates and returns a parser for the given Path, which the caller MUST close. ... Returns a sequential Stream with this collection as its source. clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait ... Deprecated. Will be removed in the next major version, use CSVParser.Builder.get().
CodeSignal
codesignal.com › learn › courses › parsing-table-data-in-java › lessons › parsing-csv-files-in-java-using-jackson-library
Parsing CSV Files in Java Using Jackson Library
Ease of Use: Jackson offers straightforward methods to map CSV data directly into Java objects or collections, simplifying data handling. Performance: Known for its high performance and efficiency, Jackson handles large datasets efficiently. Flexibility: The library supports a variety of data formats, providing versatility for multiple use cases beyond just CSV.
Simplesolution
simplesolution.dev › top-3-libraries-for-writing-and-reading-csv-file-in-java
Top 3 Libraries for Writing and Reading CSV File in Java
package dev.simplesolution.commonscsv; import java.io.FileReader; import java.io.IOException; import java.io.Reader; import org.apache.commons.csv.CSVFormat; import org.apache.commons.csv.CSVParser; import org.apache.commons.csv.CSVRecord; public class CommonsCsvReading { public static void main(String[] args) throws IOException { String inputFileName = "D:\\SimpleSolution\\Contacts.csv"; try(Reader reader = new FileReader(inputFileName); CSVParser csvParser = new CSVParser(reader, CSVFormat.DEFAULT.withFirstRecordAsHeader().withIgnoreHeaderCase().withTrim())) { for(CSVRecord record : csvParser) { String firstName = record.get("First Name"); String lastName = record.get("Last Name"); System.out.println("First Name: " + firstName + ";" + "Last Name: " + lastName); } } } } Program output:
Apache Commons
commons.apache.org › csv
Home – Apache Commons CSV
July 30, 2025 - Commons CSV reads and writes files in variations of the Comma Separated Value (CSV) format · Read the documentation starting with the Javadoc Overview
GitHub
github.com › skjolber › sesseltjonna-csv
GitHub - skjolber/sesseltjonna-csv: World's fastest CSV parser / databinding for Java · GitHub
sesseltjonna-csv is an advanced, high-performance CSV library with developer-friendly configuration options. ... In a nutshell, a very specific parser is generated per unique CSV file header (i.e. column order), which yields extremely fast ...
Starred by 19 users
Forked by 5 users
Languages Java
Frequal
frequal.com › java › ApacheCommonsCsvForEasyJavaCsvParsing.html
Apache Commons CSV for Easy CSV Parsing in Java
April 1, 2025 - To parse CSV files in Java, Apache Commons CSV should be your go-to library.
GitHub
github.com › osiegmar › FastCSV
GitHub - osiegmar/FastCSV: Fast, lightweight, and RFC 4180 compliant CSV library for Java. Zero dependencies, ~90 KiB. Trusted by Apache NiFi, JUnit, and Neo4j. · GitHub
Starred by 684 users
Forked by 106 users
Languages Java
GitHub
github.com › uniVocity › csv-parsers-comparison
GitHub - uniVocity/csv-parsers-comparison: Comparisons among all Java-based CSV parsers in existence · GitHub
If you just want to run from the main() method, download the worldcitiespop.txt and place it under src/main/resources/ before executing the main class PerformanceComparison.java. Our test is very simple and involves just counting the number of rows read from the input file. The implementation using each parser is here. The input file is not RFC 4180 compliant. We generate a compliant version using the HugeFileGenerator class to test the parsers against a generated file with the same data, but enclosed within quotes and properly escaped. It's important to notice that there's no such thing as a CSV standard and we do not recommend you to use parsers that follow the RFC strictly, as they will blow up in face of non-compliant inputs.
Starred by 277 users
Forked by 53 users
Languages Java 81.5% | HTML 18.5%
Blogger
javarevisited.blogspot.com › 2015 › 06 › 2-ways-to-parse-csv-files-in-java-example.html
2 Ways to Parse CSV Files in Java - BufferedReader vs Apache Commons CSV Example
August 7, 2021 - First way is by using ... by using Apache Commons CSV library's CSVParser class. Commons CSV is new member in rich Apache commons family and has built in support to read most common CSV formats e.g. RFC 4180, Microsoft Excel, MySQL and TDF. You can also create a custom format by using the fluent style API of Apache commons CSV. CSVParser is fully functional parser, which can parse a different kinds of CSV files ...
Medium
medium.com › @zakariafarih142 › mastering-csv-parsing-in-java-comprehensive-methods-and-best-practices-a3b8d0514edf
Mastering CSV Parsing in Java: Comprehensive Methods and Best Practices | by Zakariafarih | Medium
November 25, 2024 - Complex CSV Structures: When dealing with complex CSVs, external libraries like OpenCSV or Apache Commons CSV are recommended for their robustness. Performance and Scalability: Java Streams offer performance benefits for large files but may require additional handling for complex cases. Customization Needs: Building a custom parser provides flexibility but demands careful implementation to cover all edge cases.
Stack Abuse
stackabuse.com › reading-and-writing-csvs-in-java-with-apache-commons-csv
Reading and Writing CSVs in Java with Apache Commons CSV
February 20, 2019 - The Apache Commons CSV library is the Apache Software Foundation's version of a Java CSV parser.