Open and View CSV Files for Free. Easily convert files to other formats like TSV, JSON, and more.
Upload CSV File
Drag and drop your CSV file or click to browse
You can upload files of any size and view them without any limits.
Built with the latest technologies to provide the best performance.
Your data is secure and private. Everything happens in your browser.
Search and filter your CSV file to find the data you need.
Quickly export your CSV file to TSV, JSON, and other formats.
You can use CSV Viewer without creating an account.
Python code to read a CSV file using Pandas. The CSV file will be loaded into a Pandas DataFrame.
# Import Pandas library
import pandas as pd
# Read the CSV file
df = pd.read_csv('data.csv')
# Print the data
print(df)
Python code to read a CSV file using CSV library. The CSV file will be loaded into a list of lists.
# Import CSV library
import csv
rows = []
# Read the CSV file
with open('data.csv', 'r') as file:
reader = csv.reader(file)
# Iterate over the rows
for row in reader:
rows.append(row) # Each row is a list
print(rows)
Python code to read a CSV file using CSV library with DictReader. The CSV file will be loaded into a list of dictionaries.
# Import CSV library
import csv
rows = []
# Read the CSV file
with open('data.csv', 'r') as file:
reader = csv.DictReader(file)
# Iterate over the rows
for row in reader:
rows.append(row) # Each row is a dictionary
print(rows)
Python code to read a CSV file using DuckDB. The CSV file can be queried using DuckDB SQL.
# Import DuckDB library
import duckdb
# Read the CSV file
result = duckdb.sql("SELECT * FROM 'data.csv'")
# Print the data
print(result)