# Can a CHGCAR file be converted into a CIF file?

A .cif file can be used for multiple purposes and is a more generic format to store atomic data.

• In what situation would you only have a CHGCAR file? Surely, if you have a CHGCAR, then you also have a CONTCAR or POSCAR or vasprun.xml or some other file that contains structural information rather than the charge density. Edit: Based on your other questions, it looks like you want a CIF with charge density information, but that is not practical. The whole point of a charge density is that it is a volumetric property. If you just want point charges, then you can calculate partial atomic charges (e.g. using the Bader method). Jun 22 at 23:59
• @AndrewRosen The reason why I want a cif file conversion for my CHGCAR file is because I want to voxelize my CHGCAR data. Do you suggest any other method to make this happen? Jun 23 at 4:25
• You can use Vesta to do that. BUT I think that conversion is meaningless.
– Jack
Jun 23 at 8:41