Lably
Skip to content

File format

Structure of information stored on a computer

  • 19 min read
  • 4 chapters

Learn it on Lably

Some file formats are designed for very particular types of data: PNG files, for example, store bitmapped images using lossless data compression. Other file formats, however, are designed for storage of several different types of data: the Ogg format can act as a container for different types of multimedia including any combination of audio and video, with or without text (such as subtitles), and metadata. A text file can contain any stream of characters, including possible control characters, and is encoded in one of various character encoding schemes. Some file formats, such as HTML, scalable vector graphics, and the source code of computer software are text files with defined syntaxes that allow them to be used for specific purposes.

Specification

Some file formats have a published specification describing the format and possibly how to verify the correctness of data in that format. Such a document is not available for every format (sometimes because the format is considered a trade secret, and sometimes because a document was not authored). Sometimes, a format is defined de facto by the behavior of the program that accesses the file.

If there is no specification available, a developer might reverse engineer the format by inspecting files in that format or acquire the specification for a fee and by signing a non-disclosure agreement. Due to the time and money cost of these approaches, file formats with publicly available specifications tend to be supported by more programs.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Computing and communication