Home / Science / Materials science / Crystallography / CIF viewerTool #843

CIF viewer online: crystal structure in 3D, bond lengths, cell volume, Z and density from a CIF file

Open a Crystallographic Information File (CIF) and see the unit cell in 3D: the symmetry operations fill the cell from the listed atoms, and the page gives bond lengths and coordination, the cell volume, the formula and formula units Z, and the density. The file never leaves your browser.

Keep it one tap away for everyday use.

Bookmark CIF viewer?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. CIF
  2. Symmetry
  3. 3D cell
  4. Bonds
Nothing is uploadedWorks offline once open

CIF file

A .cif file up to 5 MB, as written by a diffractometer, a refinement program or a structure database you have the right to use. The first data block with a cell and atom sites is shown. The file stays on your device.

What it does

A CIF (Crystallographic Information File) is the standard text file for a crystal structure. It gives the unit cell, the space group’s symmetry operations and the positions of the atoms that are not related by symmetry (the asymmetric unit). This page reads one and shows what is inside:

  • Reading. The cell lengths and angles (with their uncertainties in brackets), the space group name, the symmetry operations (old _symmetry_equiv_pos_as_xyz or new _space_group_symop_operation_xyz tags) and the atom sites with their occupancies. Quoted values, comments and text fields are handled.
  • Filling the cell. Every operation, such as −x + ½, y, z + ½, is applied to every site; positions are brought back into the cell and duplicates (closer than 0.01 Å) merged.
  • 3D view. The cell drawn to scale with atoms coloured by element and bonds between atoms closer than a cut-off you set. Turn it by dragging or with the sliders, change the atom size, and show labels. Partly occupied sites are drawn partly filled.
  • Numbers. Cell volume, atoms of each element in the cell, the formula and formula units Z, density from the atomic weights, the shortest distance, and a bond-length table with coordination numbers that includes atoms in the neighbouring cells.

How to use it

  1. Open a CIF, paste its text, or pick an example.
  2. Look. Turn the cell, switch bonds and labels on or off, and change the bond cut-off. It starts 15 % above the shortest distance, which shows the nearest neighbours.
  3. Read the bond table and the facts. Check that the density matches the one in the file or paper.
  4. Download the atom list (fractional and Cartesian coordinates) or bond list as CSV, or a PNG, PDF or Word report with the picture.

Worked example

The page opens on rock salt, NaCl: a = 5.64 Å, space group F m −3 m, with one Na at 0, 0, 0 and one Cl at ½, ½, ½. The 192 symmetry operations of the space group fill the cell with 8 atoms, 4 Na and 4 Cl, so Z = 4 formula units of ClNa (Hill order). The cell volume is 5.64³ = 179.406 ų and the density is 4 × (22.990 + 35.45) g/mol ÷ (Nᴀ × 179.406 ų) = 2.164 g/cm³.

The shortest distance is 2.82 Å (half the cell edge), so the cut-off starts at 3.25 Å and the bond table shows each Na with 6 Cl at 2.8200 Å: the octahedral coordination of rock salt. The picture shows the familiar cube with 27 atoms, because atoms on the faces, edges and corners are drawn on every side they touch.

Pick Rutile, TiO₂ to see a tetragonal cell (Ti with 4 O at 1.947 Å and 2 at 1.980 Å), or Wurtzite ZnO for a hexagonal one.

Tips

  • If the formula or density looks wrong, check the occupancies and that the file lists all symmetry operations. A CIF without operations is shown as if it were P1, with a warning.
  • Hydrogen positions from X-ray work are often too short by 0.1 Å or more; that is the data, not the viewer.
  • The bond cut-off is one number for all pairs. Raise it to see second neighbours or lower it to tidy a crowded picture.
  • Use the cell from here in the Miller index calculator to get d-spacings, or the XRD peak calculator for 2θ.

FAQ

Which files work? Small-molecule and inorganic CIFs with _atom_site_fract_x/y/z. Protein mmCIF files use Cartesian coordinates and are not read.

Can I use CIFs from a database? Yes, the file is only read on your device. Check the database’s terms for anything you share afterwards.

Is my file uploaded? No. It is read in your browser and never sent or stored.

Where the numbers come from

  • The CIF reader, symmetry expansion, distances and density are written by fibub and checked in the tests against gemmi (read_small_structure) and NumPy on fibub's own example files and a made-up test CIF. No database CIF is used.
  • The examples (rock salt, rutile, wurtzite ZnO) are textbook structures typed by fibub with rounded cell sizes and positions; the symmetry operations are the standard ones for each space group.
  • Atomic weights for the density come from the site's element table. Element colours are fibub's own.
  • A file you open is read on the page only. It is never uploaded or stored.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-09.

Related tools

Molecular point group finder #110 Paste a molecule's XYZ coordinates or open an .xyz file to get its point group (C₂ᵥ, D₃h, T_d, O_h, I_h and the rest), every symmetry element, the group order, and whether the molecule can be chiral or polar. No coordinates? Answer the flowchart questions instead. 23 example molecules. Molar mass calculator #78 Type any formula, including brackets, hydrates, isotope labels and charges, for its molar mass, exact mass, percentage of each element, and a grams, moles and particles converter. XRD peak calculator #842 Turn powder X-ray diffraction peaks into d-spacings, crystallite sizes (Scherrer, with the instrument's width taken away), size and microstrain from a Williamson-Hall plot, and a cubic lattice (simple, body-centred, face-centred or diamond) with its lattice parameter. Type peaks or open a 2θ scan and let the page find and fit them. Miller index calculator #844 Work out the spacing of any (hkl) plane in cubic, tetragonal, orthorhombic, hexagonal, trigonal, monoclinic or triclinic cells, the angle between two planes, their zone axis and the 2θ of each, convert to and from four-index Miller-Bravais notation, list reflections, and see the planes drawn in the unit cell. Electron diffraction indexer #845 Index TEM and SAED patterns in the browser: the relativistic electron wavelength and camera constant λL, calibration with rings of a known standard, d-spacings from ring radii or spot distances, ring-ratio indexing of cubic lattices with the lattice parameter, and the zone axis of a two-spot pattern. 1D Schrödinger solver #923 Choose a textbook potential, type a formula or draw your own, and get the lowest energy levels and wavefunctions of the one-dimensional Schrödinger equation by the matrix (finite-difference) method, with the exact levels alongside for the box, harmonic oscillator, finite well, Morse, linear and Pöschl–Teller potentials.