🌐
SourceForge
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.
🌐
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().
🌐
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.
🌐
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.
🌐
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.
🌐
CodersLegacy
coderslegacy.com › home › learn java › java csv parser – apache commons
Java CSV Parser - Apache Commons - CodersLegacy
October 6, 2022 - CSV or comma separated values is a way of storing data in text files. The Apache Commons library is one of the many Java CSV Parser option...
🌐
GitHub
github.com › topics › csv-parser
csv-parser · GitHub Topics · GitHub
... CSV validator, highlighter and formatter plugin for JetBrains Intellij IDEA, PyCharm, WebStorm, ... tsv csv intellij jetbrains highlighter csv-files highlighting intention inspection webstorm pycharm csv-document syntax-parser idea-plugin ...
Find elsewhere
🌐
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
🌐
GeeksforGeeks
geeksforgeeks.org › java › reading-csv-file-java-using-opencsv
Reading a CSV file in Java using OpenCSV - GeeksforGeeks
July 11, 2025 - OpenCSV is a CSV parser library for Java. OpenCSV supports all the basic CSV-type operations you are want to do. Java 7 is currently the minimum supported version for OpenCSV.
🌐
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
🌐
Mkyong
mkyong.com › home › java › how to read and parse csv file in java
How to read and parse CSV file in Java - Mkyong.com
December 26, 2020 - 1995,Java,James Gosling "1995","Java","James Gosling" The RFC 4180 defines the format or definitions of a CSV file or text/csv file. 2.1 The OpenCSV is simple and easy to use CSV parser for 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.
🌐
How to do in Java
howtodoinjava.com › home › java libraries › opencsv – read and write csv files in java
OpenCSV - Read and Write CSV Files in Java
October 1, 2022 - OpenCSV is a tool which is a very simple csv parser library for Java. OpenCSV supports all the basic csv-type things you’re likely to want to do; and most of them we will see running in this tutorial.
🌐
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
FastCSV: fast, lightweight, and easy to use — the production-proven CSV library for Java.
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.