How CSV to Python Dictionary works
The first row supplies dictionary keys and each following row becomes one record in a Python list. String values protect leading zeroes, dates, and other source formatting from automatic changes.
Convert your file
Choose a CSV, TSV, or delimited text file up to 50 MB, then click Convert. Review the code and copy it or download a .py file. For numeric or date analysis, convert selected fields explicitly in Python afterward.
Before using the output
The generated list is data rather than a CSV-reading routine. Check headers and values before including it in your application, and use deliberate parsing rules when converting field types.
Frequently asked questions
Does it infer Python types?
No. Cells are emitted as strings to avoid changing identifiers or formatting.
Can I create a pandas DataFrame?
Yes. Use the CSV to Pandas DataFrame tool for code that wraps records in pandas.
Is the file sent to a server?
No. Conversion happens locally in the browser.
Explore all CSV tools or use the CSV to JSON converter for another output format.