Introduction
An NFO file, short for “info”, is a text file released alongside software or media by
the groups of the warez scene and the demoscene. It names the release and the group, and
gives credits and notes on installing it. The Humble Guys, a PC group, are credited with
starting the practice in 1990, in place of the usual README.TXT. NFO files
are known for their large logos drawn in text characters.
Two other kinds of file share the extension and are XML rather than this kind of text.
Kodi and other media library programs store details of
films and programmes in .nfo files, and the Windows System Information
tool saves its reports as .nfo.
Structure
An NFO has no fixed layout and no header. It is plain text, in columns meant for a fixed-width display of about 80 characters, with lines usually ended by carriage return and line feed. It is usually encoded in code page 437, the IBM PC character set, whose shaded blocks and line drawing characters make up the art. The art is drawn only with those characters: unlike ANSI art it normally has no escape codes, so it has no colour.
Because the file does not say which encoding it uses, opening one as Windows-1252 or UTF-8 turns the art into accented letters. To display it correctly, a viewer must decode it as code page 437 and use a font with no gaps between lines. Files from recent years are sometimes UTF-8.
▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄
███▀▀▀▀███ ███▀▀▀▀▀▀
███ ███ ███▄▄▄▄▄
███ ███ ███▀▀▀▀▀
▀▀▀ ▀▀▀ ▀▀▀
░▒▓█ EXAMPLE RELEASE █▓▒░
Supplied by ... Example Group
Date .......... 1996-03-12
Disks ......... 4 x 1.44 MB
Unpack all files and run INSTALL.EXE.
What the explorer shows
The explorer first asks whether the file is a Kodi (XBMC) library file: an optional
XML declaration and comments, then a root element of movie,
tvshow, episodedetails, musicvideo,
album or artist, and a document that is well-formed XML. Such a file opens as
XML, with its element tree. Any other .nfo opens in the plain text viewer.
The text viewer reads a file as UTF-8 when it is valid UTF-8, as UTF-16 when it has a
byte order mark, and otherwise as DOS code page 437, so the box-drawing and block
characters (bytes B0 to DF) of the art come out as drawn. The
Overview tab lets the encoding be seen and the Text tab shows the characters.
A file with ANSI escape sequences (ESC [ … m colours, cursor moves, screen
clears) also gets a Colour tab, which draws the file as an ANSI.SYS terminal would, 80
columns wide and in the sixteen VGA colours. The escape bytes stay in the Text tab and the
hex view.
Not described
Known, not yet covered
- Reference: the elements of a Kodi
movie,tvshoworepisodedetailsfile are not listed (the Kodi wiki describes them), and the format of the Windows System Information report is not described either. - Viewer: a Kodi file opens as generic XML, so its elements are shown as XML and not explained as movie details. A Kodi file whose first line is a web address before the XML, and one that is not well-formed XML, open as plain text.
- Viewer: the Colour tab does not handle every terminal sequence: it draws colours (16, 256 and true colour), bold, reverse video, cursor moves, saves and restores, erase in line and clear screen, and ignores the rest (blink, ANSI.SYS mode and key reassignment). Bytes
01to1Fthat code page 437 draws as symbols are not drawn as those symbols in the Colour tab, and the Colour tab draws no more than 20,000 rows (the Text tab holds the rest). Release details (group, date, disk count) are ordinary text and are not picked out.
Links
Software
- NFO Viewer – simple viewer for code page 437 NFO files
- Notepad++ – text editor that can show a file as code page 437 (Windows)
- Kodi – media centre that reads its own XML
.nfofiles (Windows, macOS, Linux) - System Information –
msinfo32, which opens and saves XML.nforeports (Windows)
Developers
- codecs – Python’s encoding support, including
cp437(Python)
Reference
- .nfo – Wikipedia’s history of the file
- Code page 437 – the IBM PC character set
- NFO files – Kodi’s documentation of its XML form
- msinfo32 – Microsoft’s page on the System Information tool