What Is a CBZ File? How to Open and Make One
What is a CBZ file? A ZIP of ordered comic images. Learn how to open CBZ files, how CBZ differs from CBR, and how to make a CBZ file by hand.
A CBZ file is a comic book archive: a standard ZIP file full of page images, renamed with a .cbz extension so comic reader apps know to display it as a book. There's no special encoding or DRM involved. If you can make a ZIP file and name your images in order, you can make a CBZ.
What's inside a CBZ
Rename a .cbz file to .zip and open it, and you'll usually find:
- Page images, most often JPEG or PNG, sometimes WebP or other formats depending on the tool that made it.
- Optional folders, for example one per chapter.
- Optional metadata, such as a
ComicInfo.xmlfile that some readers and library managers use for title, series, volume number and reading direction.
The reader app opens the archive, sorts the image file names and shows them one after another. That's the whole format. Its simplicity is why it's so widely supported.
CBZ vs CBR and the other "CB" formats
The letter after "CB" tells you which archive format is underneath:
| Extension | Underlying archive | Notes |
|---|---|---|
.cbz |
ZIP | The most widely supported. Easy to create with built-in tools on most systems. |
.cbr |
RAR | Common in older collections. Creating RAR archives usually needs separate software. |
.cb7 |
7z | Less common. Good compression, less reader support. |
.cbt |
TAR | Rare. Uncompressed bundle. |
Since images like JPEG and PNG are already compressed, there's little size benefit to RAR or 7z over ZIP for comics. For anything new, CBZ is the safe choice.
How to open a CBZ file
You need a comic reader or a general-purpose ebook or image viewer that understands comic archives. Options exist on every major platform, including free and open-source desktop readers, mobile comic apps, e-reader software and self-hosted comic library servers. When choosing one, look for:
- Right-to-left mode for manga, so tapping or swiping moves in the correct direction.
- Two-page spread view for desktop and tablets.
- Fit-to-width and fit-to-height options.
- Library management if you have many volumes.
If you just want to see the images without installing anything, you can rename the file from .cbz to .zip, extract it, and open the images in any photo viewer. You lose the reading experience but you can confirm what's inside.
Naming and ordering: the one thing to get right
Readers sort pages by file name, and many of them sort alphabetically rather than numerically. That causes the most common CBZ problem: pages out of order.
Alphabetically, page10.jpg comes before page2.jpg, because "1" sorts before "2". The fix is zero-padding: give every number the same number of digits.
Bad Good
page1.jpg page001.jpg
page2.jpg page002.jpg
... ...
page10.jpg page010.jpg
page100.jpg page100.jpg
Other naming tips:
- Pad to the largest count. Three digits handles up to 999 pages; use four for very long collections.
- Prefix with the volume or chapter if you combine several:
ch01_p001.jpg,ch01_p002.jpg,ch02_p001.jpg. - Put the cover first.
000_cover.jpgorp000.jpgsorts ahead of page one. - Avoid spaces and special characters if you'll share files across systems. Letters, numbers, hyphens and underscores are safest.
- Keep folder nesting simple. Some readers handle subfolders well, others flatten or ignore them.
How to make a CBZ file by hand
You don't need special software. Here's the general process:
- Collect your pages in one folder.
- Rename them in order with zero-padded numbers. Most systems have a batch rename feature, or you can use a small script.
- Check the order by sorting the folder by name.
- Select the image files (not the folder itself, if you want a flat archive) and compress them into a ZIP using your system's built-in "compress" option.
- Rename the extension from
.zipto.cbz. Make sure your system is showing file extensions so you don't end up withbook.cbz.zip. - Open it in a reader and flip through to confirm the order.
On a command line, the same thing is usually one line, for example zip -r my-comic.cbz *.jpg run inside the folder. Some guides suggest using "store" (no compression) mode, since images are already compressed and storing them makes the archive slightly faster to open. Either works.
Optional: add metadata
If you use a library manager, you can add a ComicInfo.xml file at the root of the archive with fields such as title, series, number and writer. It's widely recognized by comic library tools, but readers that don't use it will simply ignore it. For manga, some tools also read a field that indicates right-to-left reading.
Image quality tips for CBZ
- Keep one size across pages so the reader doesn't jump between zoom levels.
- Use PNG for black-and-white line art and screentones if file size allows. JPEG compression can blur fine tone patterns and create artifacts around lines.
- Use JPEG at high quality for color pages to keep files manageable.
- Don't upscale low-resolution scans just to make them bigger. It adds file size without adding detail.
CBZ and YukiAI
YukiAI works with CBZ in both directions. You can bulk import pages as images, folders, ZIP or CBZ files, which is handy if you have your own black-and-white pages you want to colorize with AI. When you're done, you can export a project as CBZ or ZIP to read in any comic reader. Projects are stored in your browser, so exporting is also a good way to keep a backup. See the AI art privacy checklist for more on keeping your files under your control.
As always, only import, color or edit work you have the rights to use.
FAQ
Is a CBZ file safe to open?
A CBZ is just a ZIP of images, so a normal one is low risk. As with any downloaded archive, get files from sources you trust and use an up-to-date reader. If an archive contains executable files rather than images, don't run them.
Can I convert a CBR to a CBZ?
Yes. Extract the RAR archive with software that supports RAR, then compress the images into a ZIP and rename it to .cbz. Some comic tools can do the conversion in one step.
Why are my CBZ pages out of order?
Almost always because the file names aren't zero-padded, so 10 sorts before 2. Rename the files with the same number of digits and rebuild the archive.
What's the difference between CBZ and PDF for comics?
A CBZ stores each page as its original image, so quality stays exactly as you saved it and pages are easy to extract or edit. A PDF wraps pages in a document format, which can re-compress images and is harder to modify, but opens almost anywhere.
Does a CBZ have to contain only images?
Images are what readers display. A metadata file like ComicInfo.xml is common and fine. Other files are usually ignored, but it's best to keep the archive clean.
Have a stack of pages ready? Open the studio to import a CBZ, work on it, and export it again.