There are two ways you could do this
-
Using Kentico's Contacts API
-
Second approach is using Kentico's import toolkit which allows you to import massive amount of data either from a database(SQL) or through a CSV/Excel file without writing code - Check this article