Sanskrit, one of the most ancient spoken and written languages in the world and one of the earliest members of the Indo-European language family, is the primary source of Hindi.
Hindi, like Sanskrit, is written in the Dev Naagari script, which is common to several other Indian languages as well.
Much of the vocabulary of Hindi comes from Sanskrit, though Hindi also has a special relationship with Urdu, their grammar and much of their vocabulary being identical.