Open CSV File

Information, tips and instructions

CSV File Example

Below is an example of a simple CSV file with 3 lines one of which is empty. All lines have same number of vlues in them. First line contains the header titles for the file.

Name,Job Title,Address,State,City
John Doe,Designer,325 Pine Street,,Seattle
,,,,
Edward Green,Developer,110 Pike Street,WA,Seattle

Download this CSV example file

Example CSV file below contains commas in the "Name" column and also has double quotes to delimit values with commas. Delimiting values with double quotes ensures that commas inside the values will not be interpreted as value separators.

Name,Job Title,Address,State,City
"Doe, John",Designer,325 Pine Street,,Seattle
"Green, Edward",Developer,110 Pike Street,WA,Seattle

Download this CSV example file with quotes

Example CSV file below shows how double quotes inside values have to be encoded. As you can see "Designer for ""The Journal""" has lots of double quotes in it. The resulting value when this CSV will be read will be: Designer for "The Journal". Each double quote inside the value needs to be converted preceeded with another double quote in order for CSV file to be parsed correctly. Values which have double quotes need to be enclosed in double quotes.

Name,Job Title,Address,State,City
"Doe, John","Designer for ""The Journal""",325 Pine Street,,Seattle
"Green, Edward",Developer,110 Pike Street,WA,Seattle

Download this CSV example file with quotes escaped

Example CSV file below shows new line character used inside the value. Values which have new line character in them have to be enclosed by double quotes. Name,Job Title,Address,State,City
"Doe, John","Designer for
The Journal",325 Pine Street,,Seattle
"Green, Edward",Developer,110 Pike Street,WA,Seattle

Download this CSV example file with new lines