Introduction
A CBR file is a comic book stored as a RAR archive of page images. It works exactly like CBZ, its ZIP counterpart, and both are read by the same programs. RAR is a proprietary format that only WinRAR’s makers can write, so CBZ is the more open choice for new files; CBR is still common in older collections.
Some files named .cbr are really ZIP archives, and the reverse, so good
readers check the signature rather than trust the extension.
Structure
The file is a RAR archive, which starts
with the signature Rar!: 52 61 72 21 1A 07 00 for RAR 1.5
to 4.x, or 52 61 72 21 1A 07 01 00 for RAR 5. It holds one image per page,
usually JPEG or PNG. Readers sort the files by name to find the page order, and may
read a ComicInfo.xml file
for the series, issue and creators. Solid archives make random page access slow, and
encrypted or multi-volume archives are not supported by most readers.
Not described
A CBR file is a RAR archive of images, so most of its structure is RAR’s.
Known, not yet covered
- Reference: the full RAR header layouts are on the RAR pages (another owner), not repeated here; RAR 1.5–2.x and RAR 3 archives that comic tools still meet are not described on the archive page.
- Reference: CoMet and ComicBookInfo metadata, see CBZ.
- Viewer: a CBR opens as a comic: the explorer’s RAR reader unpacks the members, and the pages, ComicInfo.xml, CoMet.xml and ComicBookInfo in the archive comment are read as for a CBZ, with the RAR tab beside them. Tested on two real RAR 5.0 CBR files (the comicbox project’s “Captain Science” #1, see the sample notes); an encrypted CBR asks for its password (the RAR reader’s Password option; tested on libarchive’s encrypted RAR files, which hold text, not pictures, so the pages of an encrypted comic have not been seen), and a CBR that is a set of volumes was not tried through this path.
Links
Software
- YACReader – free comic reader and library (Windows, macOS, Linux, iOS)
- SumatraPDF – small, fast free viewer that reads comic archives (Windows)
- calibre – free ebook library manager and reader (Windows, macOS, Linux)
- Okular – KDE’s document viewer, which opens comic archives (Linux, Windows)
Reference
- RAR 5.0 archive format – RARLAB’s technical note on the RAR 5 container
- ComicInfo – the Anansi Project’s schemas for
ComicInfo.xml - CBR and CBZ – the MobileRead Wiki’s page on comic archives