CBR and CBZ Files: Comic Book Archive Format Guide
CBR and CBZ are archive formats specifically used for digital comics. They contain sequential page images — typically scanned comic book pages — organized for display in dedicated comic reader applications. Despite their specialized name, CBR and CBZ are not proprietary or complex formats: they are simply standard archive files with renamed extensions. Understanding this is the key to working with them.
The Simple Truth About CBR and CBZ
| Format | Extension | Archive Type | Compression |
|---|---|---|---|
| CBR | .cbr |
RAR archive | RAR |
| CBZ | .cbz |
ZIP archive | Deflate/Store |
| CB7 | .cb7 |
7-Zip archive | LZMA2 |
| CBT | .cbt |
TAR archive | None |
| CBTM | .cbtm |
TAR + gzip | Gzip |
CBR is a RAR file with .cbr extension. Rename it to .rar, open it in 7-Zip or WinRAR, and you get the image files inside.
CBZ is a ZIP file with .cbz extension. Rename it to .zip, open it in any file manager, and you get the image files.
The images inside are typically JPEG (for scanned photos/comics), PNG (for digital artwork or lossless quality), or WebP (increasingly for modern releases).
Page Organization Inside CBR/CBZ
Comic reader applications display pages in filename sort order. The standard naming convention is zero-padded sequential numbers:
001.jpg, 002.jpg, 003.jpg, ... (pages 1, 2, 3)
or
Page_001.jpg, Page_002.jpg, Page_003.jpg
Some collections use descriptive names:
Issue_24_Cover.jpg
Issue_24_Page_001.jpg
Issue_24_Page_002.jpg
Critical: if pages are not named with zero-padding and sort order is alphabetical, page 10 will sort before page 2 (10 < 2 alphabetically). Always use zero-padded numbers (001, 002, 010) when creating comics archives.
Reading CBR and CBZ Files
Desktop Applications
CDisplayEx (Windows, free): The most popular dedicated comic reader on Windows. Supports CBR, CBZ, CB7, CBT, PDF, and EPUB.
YACReader (Windows, macOS, Linux, free): Cross-platform, includes a library manager, double-page view, bookmarks.
Komga (all platforms, free/open source): Self-hosted comic server — runs on your NAS/server, streams comics to web browser or app.
Calibre (Windows, macOS, Linux): E-book manager that supports CBR/CBZ import and can convert them to EPUB.
MangaMeeya (Windows): Specialized for right-to-left (manga) reading.
Mobile
Moon+ Reader (Android): Supports CBZ/CBR reading natively.
ComicScreen (Android): Dedicated comic reader, free.
Chunky Comic Reader (iOS): Popular iOS comic reader supporting CBZ/CBR.
YACReader for iOS (free with library sync from desktop YACReader).
Creating CBZ Files
Since CBZ is just a ZIP file, creating one is trivial:
From command line:
# Linux/macOS
zip -j comic.cbz page001.jpg page002.jpg page003.jpg
# Or from a directory of images
cd /path/to/comic/pages
zip -r ../my_comic.cbz *.jpg
# Sort and ensure correct order (important)
ls -v *.jpg | zip ../my_comic.cbz -@
From Python:
import zipfile
import os
import glob
pages = sorted(glob.glob('pages/*.jpg')) # sorted() ensures order
with zipfile.ZipFile('my_comic.cbz', 'w') as zf:
for page in pages:
zf.write(page, os.path.basename(page))
print(f"Created CBZ with {len(pages)} pages")
From Windows (built-in ZIP):
- Select all image files in Explorer
- Right-click → Send to → Compressed (zipped) folder
- Rename
filename.ziptofilename.cbz
Converting CBR to CBZ
This is the most common comic conversion: CBR (RAR) to CBZ (ZIP), because:
- RAR requires proprietary software; ZIP is universally supported
- Some readers (e-readers, many mobile apps) support CBZ but not CBR
- CBZ is easier to create and modify without special tools
Using 7-Zip (Windows):
# Extract CBR (RAR) to a temporary folder
"C:\Program Files\7-Zip\7z.exe" e input.cbr -o"C:\temp\comic_pages"
# Create CBZ (ZIP) from the extracted images
"C:\Program Files\7-Zip\7z.exe" a -tzip output.cbz "C:\temp\comic_pages\*"
Using command line on Linux/macOS:
mkdir -p /tmp/comic_pages
# Extract RAR (requires unrar or p7zip-rar)
unrar e input.cbr /tmp/comic_pages/
# Create ZIP
cd /tmp/comic_pages
zip -r /path/to/output.cbz .
rm -rf /tmp/comic_pages
Batch conversion script (Linux/macOS):
for f in *.cbr; do
base="${f%.cbr}"
mkdir -p "/tmp/${base}"
unrar e "$f" "/tmp/${base}/"
(cd "/tmp/${base}" && zip -r "${base}.cbz" .)
mv "/tmp/${base}.cbz" .
rm -rf "/tmp/${base}"
echo "Converted: $f → ${base}.cbz"
done
Converting CBZ/CBR to PDF
Some devices (Kindle, older e-readers) display PDF better than CBZ:
Using ImageMagick:
# Extract pages from CBZ, convert to PDF
unzip input.cbz -d /tmp/comic
convert /tmp/comic/*.jpg output.pdf
rm -rf /tmp/comic
Using img2pdf (preserves image quality, no recompression):
pip install img2pdf
unzip input.cbz -d /tmp/comic
img2pdf /tmp/comic/*.jpg -o output.pdf
Converting CBZ/CBR to EPUB
For e-reader devices that prefer EPUB format:
Using Calibre:
- Add CBZ to Calibre library
- Right-click → Convert → EPUB
- Set output profile (e.g., Kindle Paperwhite)
- Calibre wraps each image as a separate EPUB page
Using Kindlegen / KindleComicCreator (for Kindle): Amazon's Kindle Comic Creator (KCC) tool creates optimized MOBI/KFX files from CBZ source material with panel-by-panel guided view.
Optimizing CBZ Images for E-Readers
When creating CBZ for e-readers (Kindle, Kobo, etc.), optimize images:
- Resolution: Target device pixel count (Kindle Paperwhite: 1264×1680, Kindle Oasis: 1264×1680)
- Format: JPEG at 80–90% quality for scanned comics; PNG for artwork with flat colors
- Grayscale: Convert color scans to grayscale for better contrast on E-Ink displays
- Margins: Crop white borders to maximize the page on small screens
# Batch optimize images for Kindle Paperwhite
for img in *.jpg; do
convert "$img" -resize 1264x1680 -colorspace Gray -quality 85 "kindle_${img}"
done
zip kindle_comic.cbz kindle_*.jpg
CBZ Metadata: ComicInfo.xml
The de facto metadata standard for comic archives is ComicInfo.xml — a file placed in the root of the ZIP:
<?xml version="1.0" encoding="utf-8"?>
<ComicInfo>
<Series>Batman</Series>
<Number>457</Number>
<Year>1990</Year>
<Month>12</Month>
<Writer>Alan Grant</Writer>
<Penciller>Norm Breyfogle</Penciller>
<Summary>Tim Drake officially becomes Robin</Summary>
<Genre>Superhero</Genre>
<LanguageISO>en</LanguageISO>
<PageCount>36</PageCount>
</ComicInfo>
Comic management tools like Calibre, Komga, and Mylar use this metadata for library organization, series tracking, and cover art.
Related conversions
Archive format conversions used most often: