Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working with QGIS on a Mac, and understand the process for importing a CSV file. But I do not know how to create the CSVT file to define the CSV file's data types. Can someone please instruct me on how to do this?

share|improve this question
up vote 5 down vote accepted

A CSVT file is just a plain text file that you create with the extension .csvt. The file has a single line with the types for each column:


Make sure there are no spaces between each , or type.

share|improve this answer

You have to find a programme, where you can write the extention by hand. For windows you can do it in Gedit. First you type the line "Integer","real",... and so on, as it is written in previous answer and after clicking 'save as' you delete the given extention and type 'csvt' for example programme gives 'fields.txt' then you delete 'txt' and write csvt instead to get 'fields.csvt'. Then you click save. It worked for me. Good luck!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.