Crystallographic Information Framework



CIFFOLD is a stand-alone application to implement the CIF protocol for folding and unfolding text fields and comments that exceed any given maximum line size. It may be used to convert long-line CIF 1.1 files to a form suitable for processing by existing software for 80-character line CIF 1.0 files, and to recover long-line CIF 1.1 files from CIFs produced by CIF 1.0 software.


If you wish to install and use this software you should download the most up-to-date version from the above Web site. The links below are to copies which are suitable for browsing or for use if the primary Web site is not available. However, they may be out of date and lack the full functionality of the latest version.


This software was developed as part of a 2-year project (2004-2006) funded in part by the IUCr at Dowling College for new and upgraded CIF software to facilitate publication in IUCr journals.

Language and platform

The software is written in C/C++ and should compile and run in a command-line environment on any common operating system with a C/C++ compiler.


  • Installation: Copy the gzipped tar file CIFFOLD.tar.gz into an empty directory; gunzip and extract files using the Unix tar utility. Then use the make utility to build the application:
     cp CIFFOLD.tar.gz /a/b/c; cd /a/b/c
    gunzip CIFFOLD.tar.gz; tar xvf CIFFOLD.tar
    If gunzip or tar are unavailable, individual source files may be saved to the build directory.
  • General: User's manual
  • The line folding/unfolding protocol as described in the CIF 1.1 specification

Terms and conditions of use

Copyright in the software © Kostadin Mitev.
Authors: Kostadin Mitev, Georgi Todorov and Herbert J. Bernstein

This version of CIFFOLD is distributed under the GNU General Public License.