CBZ has no specification: it is a convention, started by the CDisplay reader, that a ZIP archive of images is a comic. What follows is how the common readers (ComicRack, CDisplayEx, YACReader, Komga, Kavita, calibre) treat the files, which in practice defines the format.
The ZIP container
- The file is an ordinary ZIP archive and starts with
50 4B 03 04(PK\3\4). There is nomimetypeentry or other marker; a reader should check the signature, since files named.cbzare sometimes RAR or 7z archives. - Images are usually stored without compression (method 0), since JPEG and PNG do not compress further; Deflate (method 8) is also common. Readers support whatever their ZIP library does; Deflate64, LZMA and others may fail in some.
- Encrypted entries are not supported by most readers.
- File names are UTF-8 when general-purpose flag bit 11 is set; older archives use the code page of the computer that made them, which can garble non-ASCII names.
- A ZIP64 archive is needed for files over 4 GB, rare for comics.
Images
Each page is one image file. JPEG and PNG are universal; GIF, WebP, AVIF and JPEG XL
are read by newer readers, and BMP and TIFF by some. Readers decide what is an image
from the extension (.jpg, .jpeg, .png,
.gif, .webp and so on), ignoring other files such as
.txt, .nfo, .xml and Thumbs.db,
and folders such as __MACOSX. A two-page spread is usually one wide
image.
Page order
- Pages are shown in the order of their names, not their order in the archive.
- Most readers sort “naturally”, comparing runs of digits as numbers, so
page2.jpgcomes beforepage10.jpg. Some older readers sort plainly by character, so creators pad numbers with zeros:001.jpg,002.jpg…010.jpg. - Images may sit in a folder, or in several (for example one per chapter); the full path is sorted, so folders keep pages together.
- Case is usually ignored when sorting.
- The first image is the cover, unless ComicInfo.xml
marks another page as
FrontCover. Some readers instead pick an image namedcover. - Right-to-left reading for manga is set by ComicInfo’s
Mangaelement (YesAndRightToLeft) or by the user; the file order stays the reading order.
Metadata
Three conventions exist, and a file may carry more than one.
| Convention | Where | Format |
|---|---|---|
| ComicInfo | ComicInfo.xml in the archive root | XML, from ComicRack. By far the most used. |
| ComicBookInfo | The ZIP file comment, at the end of the archive | JSON, from the ComicBookLover program; see below. |
| CoMet | A file such as comet.xml in the archive | XML with Dublin Core-like elements; rarely used now. |
ComicBookInfo
The ZIP archive’s comment holds one JSON object. Its key
ComicBookInfo/1.0 holds the metadata; appID names the
program that wrote it and lastModified when. Inside, the fields are
series, title, publisher,
publicationMonth, publicationYear, issue,
numberOfIssues, volume, numberOfVolumes,
rating, genre, language, country,
credits (a list of objects with person, role
and, optionally, primary), tags (a list) and
comments. Because it lives in the comment, it can be changed without
rewriting the archive. ComicTagger reads and writes it.
The original specification is the home page and wiki of the ComicBookInfo project on Google Code, read through its
copy in the Internet Archive (the project page, wiki/Example, wiki/nonCBZ and
wiki/Others). It defines the container and gives one example; it has no table of field types:
- The metadata is JSON in UTF-8, stored in the ZIP file comment of the CBZ, which can be changed without recompressing the archive.
- At most 65,535 bytes: the ZIP comment length is a 2-byte field (the page quotes
uLong size_file_comment; /* file comment length 2 bytes */fromunzip.h). - The top-level object has
appID,lastModifiedandComicBookInfo/1.0; after them an application may add its own object whose key startsx-, as the example shows withx-ComicBookLoverandx-LinuxComicReader(eachkey : value ...). Other readers must leave such objects alone. - The example is not itself valid JSON (it has no commas between some members, a trailing comma, and writes
"primary" : YES): a writer must produce real JSON. In the exampleissueis the number1,ratingthe number5,languagea name (“English”) andcountry“United States”.
The field types below therefore come from what the example shows and from the open-source reader and writer that
fixes them in practice: ComicTagger’s comicapi/comicbookinfo.py (what it takes from the JSON and what it
writes) and comicapi/genericmetadata.py (what a credit is), both read as raw files from its GitHub
repository. Mylar’s copy only re-exports ComicTagger’s module. They are a convention, not a specification.
| Field | JSON type | How ComicTagger handles it |
|---|---|---|
series, title, publisher, issue, comments, genre, country | string (issue: a string or a number) | read and written as they are. issue is a number in the original example (1) and a string in what ComicTagger writes (“3”, “3A”); a reader should accept both |
publicationMonth, publicationYear, numberOfIssues, volume, numberOfVolumes | integer | written as integers (a value that is not a whole number is left out); read as they are |
rating | number | the critical rating, passed through unchanged |
language | string, a language name such as “English” | translated to and from the two-letter ISO code on reading and writing |
credits | array of objects | each person (string), role (string) and, when true, primary (boolean, left out when false) |
tags | array of strings | always an array, empty when there are none |
Fields that are not set are left out. The explorer checks every field against these types and reports a value of another type, a month outside 1 to 12 (a convention: the original gives no range) and a credit without a string person and role as recommendations. It reports a comment that looks like ComicBookInfo but is not valid JSON as a problem, because no reader will take its fields, and shows x- objects without judging them.
{"appID": "ComicTagger/1.0",
"lastModified": "2024-05-01 10:00:00",
"ComicBookInfo/1.0": {
"series": "Harbour Lights", "issue": "3", "publicationYear": 2024,
"credits": [{"person": "Ana Ruiz", "role": "Writer", "primary": true}],
"tags": ["noir"]}}
CoMet
CoMet 1.1 (the Comic Metadata format, by Denvog, updated 22 May 2015) is an XML file
whose root is comet, declared in the namespace
http://www.denvog.com/comet/; without the declaration the tags mean
nothing. Its schema is comet.xsd. The specification asks for the namespace
declaration on the root element (xmlns:comet="http://www.denvog.com/comet/",
xmlns:xsi and an xsi:schemaLocation pointing at
http://www.denvog.com/comet/comet.xsd), and its own example writes the child
elements without a prefix. UTF-8 is the encoding to use (other encodings are “not guaranteed to
work in all applications”) and all values are plain text, no markup or HTML. Only
title is required; the other tags are recommended “in order to provide the best possible user
experience”. The elements, with their types, are below; the ones marked “repeatable” may
appear several times (a batman comic has several characters).
- Extra metadata: a producer may add metadata beyond the specification, but its names must not begin with
comet:unless the specification defines them, and an application “must not fail when encountering unknown metadata but must, at a minimum, ignore it”. - Length: element values are recommended to be at most 255 characters, with one element allowed 4,000. The
specification’s sentence is damaged in its published text (“except forwith a recommended limit of 4000
characters”: the element name is missing, in the page as served and in the Internet Archive copy), so which
element gets 4,000 is not stated;
descriptionis the likely one, but that is a guess, not a rule the page can give. The explorer does not check lengths. - Version 1.1 (22 May 2015): the date is written YYYY-MM-DD and the price is a real number “to allow for
cents”. The example file in the specification starts with
<?xml version="1.1" encoding="UTF-8"?>.
| Element | Type | Repeatable | Meaning |
|---|---|---|---|
title | string | no | The title. Required. |
description | string | no | A description of the content. |
series | string | no | The story arc or collected volume, often several issues. |
issue | positive integer | no | The number of a single release. |
volume | positive integer | no | An annual publication or story arc, often several issues. |
publisher | string | no | The group, company or person responsible for the publication. |
date | YYYY-MM-DD (year required; month, day optional) | no | The date of print publication, a profile of ISO 8601. |
genre | string | yes | The nature or genre. |
character | string | yes | An entity depicted; several comma-separated values are allowed. |
isVersionOf | string | no | A related resource this is a version, edition or adaptation of. |
price | real number, two decimals | no | The cover price. |
format | string | no | Comic, Hardcover, Trade Paperback and the like. |
language | ISO 639-1 two-letter code | no | The language of the content: accepted values are those of the ISO 639-1 Alpha-2 list, two letters of the basic Latin alphabet, such as en. The explorer checks the shape (two Latin letters), not membership of the list. |
rating | string | no | A publisher’s rating, such as A, T+ or Parental Advisory. |
rights | string | no | The rights held, typically the copyright holder. |
identifier | string | no | A string or number from a formal identification system, most commonly a UPC code or an ISBN. (The specification adds that a comic’s bar code is a UPC: a company prefix of 6 to 9 digits, an item reference, and 5 more digits that identify the issue.) |
pages | integer | no | The number of pages. |
creator | string | yes | The entity primarily responsible for making the content. |
writer | string | yes | The author. |
penciller | string | yes | The artist who conceives the design or illustration. |
editor | string | yes | The person who prepares a work for publication. |
coverDesigner | string | no | The person or organisation responsible for the cover design. |
letterer | string | yes | The person responsible for the lettering. |
inker | string | yes | The inker. |
colorist | string | yes | The colourist. |
coverImage | URI | no | The cover picture, usually its file name; the URI must end in .jpg, .gif or .png. Display devices should support JPEG, GIF and PNG in an RGB colour space, and the image is recommended to sit at the root of the archive. |
lastMark | positive integer | no | Where the reader stopped, so an application can resume there. |
readingDirection | ltr or rtl | no | The base page flow: ltr (left to right) or rtl (right to left); Japanese manga would typically be rtl. When it is not given, ltr is assumed. |
Source: the CoMet specification, “CoMet Specification” (v1.1, updated 22 May 2015) at www.denvog.com/comet/comet-specification/, fetched and read in full on 27 November 2026 (the page answered 200; a copy and the text are in the project’s research/cbz folder), and compared tag by tag, type by type and rule by rule with this table. The field types of ComicBookInfo above are as the ComicTagger project uses them and the original’s example shows them; the original has no type table, so there is none to check them against.