CBZ or page images → PDF, and images → CBZ

CBZ to PDF Converter

Turn a comic book archive (CBZ, which is a ZIP of page images) or a folder of scans into a PDF, with natural page order, right-to-left reading, optional splitting of double-page spreads, and either untouched or recompressed images. The same pages can also be packed into a new CBZ. CBR (RAR) archives cannot be opened in the browser.

Pages

CBZ, ZIP, or images (JPG, PNG, WEBP, GIF, BMP). Up to 1000 pages and 400 MB.

Drop a CBZ or page images here

.cbz .zip .jpg .png .webp

Convert

Large archives are held in memory while the PDF is built. If the tab slows down on a book of several hundred pages, recompress to a smaller side or convert it in two halves.

CBZ to PDF Converter

Operator: Abdulla Al Fahad. How tools are built and checked

A .cbz file is a ZIP archive of page images with a different extension, and most e-readers and tablets that open PDFs will not touch it. Converting it means unpacking the pages in the right order and placing one on each page of a new PDF, without making the pictures worse and without losing the reading direction that manga depends on.

This converter does that in the browser, from a CBZ or from a folder of scans. It reads the archive itself, sorts page names by number, understands right-to-left books and can split double-page spreads.

It also goes the other way: a folder of images can be packed into a CBZ, with a ComicInfo.xml if you want the title and reading direction stored in it.

Key features

  • Reads CBZ and ZIP archives, or loose images and whole folders
  • Natural page ordering and optional reversal
  • Right-to-left PDF direction and ComicInfo.xml awareness
  • Original image bytes kept, or recompression with a size and quality limit
  • Double-page spread splitting in the correct order for either direction
  • Reverse conversion: images to CBZ with an optional ComicInfo.xml

Page order, reading direction and what happens to the images

A CBZ is opened by its content, not its name: a file that begins with the ZIP signature is read even if it is called .cbr. A file that begins with the RAR signature is a true CBR, a 7-Zip file is a CB7 and a TAR file is a CBT; none of these can be opened here, and the converter says which one it found and what to do (re-save it as CBZ in a comic reader or archive tool, or extract the images and drop them in). Junk entries such as __MACOSX folders, Thumbs.db and dotfiles are ignored, and an embedded ComicInfo.xml is read for its title, series, number, writer and the Manga flag that marks a right-to-left book. Pages are the entries ending in .jpg, .jpeg, .png, .webp, .gif or .bmp, ordered by a natural comparison that treats digit runs as numbers, so page2.jpg comes before page10.jpg and chapter-1/ before chapter-2/. The limits are 400 MB for an archive and 1,000 pages per file. Format and pixel size are read from each image's own bytes, and a picture over 50 megapixels is skipped with a note instead of exhausting memory.

For the PDF, the page size can match each image at an assumed 72, 96, 150, 200 or 300 dpi (a 1200 x 1800 pixel page at 150 dpi becomes 8 x 12 inches), or be A4, US Letter or B6 manga size, with the image fitted whole or filled and cropped, on a white or black margin. A landscape image on a fixed size gets a landscape page. Page dimensions are capped at 14,400 points, the PDF limit. By default JPEG and PNG pages are embedded byte for byte; WEBP, GIF and BMP pages must be re-drawn and are encoded as JPEG. The recompress option re-encodes everything at a JPEG quality of 40 to 95, optionally with a longest side of 1,600 to 3,000 pixels.

Right-to-left sets the PDF's ViewerPreferences direction to R2L, which makes two-page viewers lay out the spread right page first; it does not reorder the pages. Reverse order flips the whole list for archives stored last page first. Splitting divides any image at least 1.25 times wider than tall down the middle into two pages, left half first, or right half first when right-to-left is on. Going to CBZ stores the images unchanged under the names 001.jpg, 002.png and so on, without extra compression, and can add a ComicInfo.xml.

How it works

Archive entries are read one at a time only when their page is processed, so memory holds the PDF being built plus one page, not the whole book twice. Progress and a cancel button are shown for every run.

Format and pixel size are read from each image's header bytes without decoding it. JPEG and PNG pages that are kept as they are never touch a canvas, which is why they are fast and lossless; WEBP, GIF, BMP, split and recompressed pages are drawn onto a canvas and encoded again, which costs more time and memory per page.

Common use cases

  • Moving a 180-page comic bought as CBZ onto an e-reader that only opens PDF
  • Shrinking a 600 MB scan collection to a phone-sized PDF by recompressing at 2,000 pixels
  • Packing a folder of 24 scanned pages into a CBZ for a comic reader app

How to use this tool

  1. Drop the CBZ, or choose a folder of images.
  2. Check the page count and the first and last names to confirm the order.
  3. Pick the page size, tick right-to-left for manga, and choose to keep or recompress the images.
  4. Press Make PDF, or switch to the CBZ tab and press Make CBZ.

Example

A folder of scans with unpadded numbers

page1.jpg, page2.jpg, page9.jpg, page10.jpg, page11.jpg (the last one 2400 x 1600 pixels)

PDF with split spreads, right to left, match each image at 150 dpi

Order: page1, page2, page9, page10, page11 (not page1, page10, page11, page2)
Page 5 split into two pages of 8 x 10.7 in, right half first
PDF with 6 pages

Edge cases to watch

A PDF has no standard way to enforce right-to-left page order in every viewer; the direction flag is honoured by many but not all.

WEBP, GIF and BMP pages are converted to JPEG, which drops transparency.

  • If a book reads backwards, try the reverse-order box before the right-to-left box: the first reorders pages, the second only sets the direction flag.
  • Leave image data on Keep for scans that are already JPEG; recompression only loses quality, and it pays off only when you must hit a size.

Common errors and how to fix them

"is a RAR archive (a true .cbr)"
RAR cannot be unpacked in the browser here. Open it in a comic reader and save as CBZ, or extract the images and drop them in.
"looks like a ZIP but could not be opened"
The download is incomplete or the archive is password-protected. Re-download it, or remove the password first.
Pages listed under "skipped"
Those images were unreadable, were not real images or exceeded 50 megapixels. The rest of the book is still converted.

What the page-size choice does to a scan

For match-each-image sizing the same pixels become a different physical page depending on the dpi you assume. A 1200 x 1800 pixel scan gives:

  • 72 dpi: a 16.7 x 25 inch page, which a reader shrinks to fit the screen.
  • 150 dpi: an 8 x 12 inch page, close to a trade paperback.
  • 300 dpi: a 4 x 6 inch page, which many readers will blow up and look soft.
  • Fixed A4, Letter or B6: every page the same size, with the image fitted whole inside margins or filled and cropped.

Frequently asked questions

Why can't it open my .cbr file?

A real CBR is a RAR archive, and RAR has no browser decoder. Some files named .cbr are in fact ZIPs, and those open normally.

Does the PDF keep the image quality?

With Keep selected, JPEG and PNG pages are copied into the PDF as they are, so there is no further loss.