2ClickKit

EPUB E-Book Metadata Editor

Files Never Leave Your Device

View and edit title, author, publisher, ISBN, and genre metadata in EPUB e-books directly in your browser. 100% private local execution.

Click to upload or drag & drop EPUB E-Book

Zero uploads. Edit title, author, publisher, and ISBN metadata 100% in your browser.

The Architecture of Digital Books: Deep Dive into the Open Publication Structure (OPS)

A comprehensive technical exploration of IDPF/W3C EPUB specifications, Open Packaging Format (OPF) syntax, Dublin Core metadata vocabularies, and e-reader indexing engines.

1. The Three Specifications of the EPUB Standard

Originally developed by the International Digital Publishing Forum (IDPF) and maintained today by the World Wide Web Consortium (W3C), the Electronic Publication (EPUB) standard is composed of three interconnected technical specifications:

  • Open Container Format (OCF): Defines how physical publication assets (text, images, fonts, styles) are packaged into a single ZIP archive. Crucially, the uncompressed string application/epub+zip must be stored at byte offset 30 as a raw file named mimetype to permit rapid MIME-type sniffing by operating systems without parsing the central ZIP directory.
  • Open Packaging Format (OPF): Defines the XML manifest, reading sequence (spine), and semantic bibliographic metadata for the publication. This file usually carries the .opf extension.
  • Open Publication Structure (OPS): Specifies the markup languages used for document chapters, principally XHTML 1.1 / HTML5, CSS2/CSS3, and SVG vector graphics.

2. The Dublin Core Metadata Element Set (ISO 15836)

Inside the OPF document, the <metadata> container utilizes the Dublin Core Metadata Initiative (DCMI) element set. Standardized under ISO 15836 and NISO Z39.85, Dublin Core provides a standardized vocabulary across fifteen core bibliographic attributes:

Dublin Core Element XML Example Role in E-Reader Hardware
<dc:title> <dc:title>Neuromancer</dc:title> Displays in library grid, lock screen, and headers
<dc:creator> <dc:creator id="aut">William Gibson</dc:creator> Enables author grouping, sorting, and search filters
<dc:identifier> <dc:identifier id="isbn">978-0441569595</dc:identifier> Matches Whispersync, Goodreads, and retailer catalogs
<dc:language> <dc:language>en-US</dc:language> Determines hyphenation dictionaries and text-to-speech voice
<dc:description> <dc:description>The sky above the port...</dc:description> Populates book details blurb and reader preview card

3. E-Reader Library Glitches and Metadata Corruption

Dedicated reading hardware (such as Amazon Kindle Paperwhite, Rakuten Kobo Clara, Barnes & Noble Nook) and mobile apps (Apple Books, Calibre, Moon+ Reader) exhibit specific failure modes when processing non-compliant or missing metadata:

  • The "Unknown Author" Bug: Sideloaded books often lack an unambiguous <dc:creator> tag or use inverted naming conventions (e.g. "Gibson, William") without a complementary opf:file-as attribute. This scatters books by the same author across different library categories.
  • Incorrect Hyphenation and Justification: If the <dc:language> tag is missing or set to a generic fallback, e-readers default to non-hyphenated rendering or apply inappropriate foreign hyphenation patterns, producing awkward whitespace rivers across justified paragraphs.
  • Missing Cover Thumbnails: EPUB 3 requires the manifest item referencing the cover image to declare properties="cover-image". Older EPUB 2 readers rely on <meta name="cover" content="cover-image-id"/>. When both conventions are missing, e-readers render an ugly generic text box placeholder.

4. Programmatic JavaScript Implementation Reference

Developers can manipulate EPUB archives directly in TypeScript using JSZip and the browser's built-in DOMParser:

import JSZip from 'jszip';

async function updateEpubTitle(epubBuffer: ArrayBuffer, newTitle: string): Promise<Blob> {
  const zip = await JSZip.loadAsync(epubBuffer);
  
  // 1. Resolve OPF path from container.xml
  const containerXml = await zip.file('META-INF/container.xml')?.async('text');
  const parser = new DOMParser();
  const cDoc = parser.parseFromString(containerXml!, 'application/xml');
  const opfPath = cDoc.querySelector('rootfile')?.getAttribute('full-path') || 'OEBPS/content.opf';

  // 2. Parse and update OPF XML
  const opfXml = await zip.file(opfPath)?.async('text');
  const opfDoc = parser.parseFromString(opfXml!, 'application/xml');
  let titleEl = opfDoc.getElementsByTagName('dc:title')[0];
  if (!titleEl) {
    titleEl = opfDoc.createElementNS('http://purl.org/dc/elements/1.1/', 'dc:title');
    opfDoc.getElementsByTagName('metadata')[0].appendChild(titleEl);
  }
  titleEl.textContent = newTitle;

  // 3. Serialize back into zip
  const serializer = new XMLSerializer();
  zip.file(opfPath, serializer.serializeToString(opfDoc));

  return await zip.generateAsync({
    type: 'blob',
    mimeType: 'application/epub+zip',
    compression: 'DEFLATE'
  });
}

5. Intellectual Property Protection and In-Browser Execution

For authors and publishers, novel manuscripts represent sensitive intellectual property prior to commercial launch. Uploading unreleased manuscripts to third-party web conversion portals exposes books to piracy, unauthorized AI training ingestion, and cloud data breaches.

2ClickKit executes the entire parsing, editing, and repacking process directly inside your browser's sandboxed client runtime. No files or book excerpts are ever uploaded to any server. You can modify your manuscripts with complete peace of mind, even on an air-gapped laptop.

How to Use EPUB Metadata Editor

  1. Upload EPUB e-book file

    Select or drag and drop any .epub file. The archive is decoded in your local browser runtime with zero network transmission.

  2. Modify metadata attributes

    Update title, author, publishing house, language, date, ISBN, rights, genres, and synopsis directly in the editor form.

  3. Download updated EPUB file

    Click Save & Download to rebuild the EPUB Open Container ZIP with modified content.opf XML, ready for Apple Books, Kindle, and Kobo.

Technical Specifications

  • Supported Inputs: EPUB E-Book (.epub)
  • Input Limit: Unlimited (100% In-Browser Memory)
  • Processing Engine: 100% In-Browser (OPF XML Package Parsing & Repacking)
  • Content Uploads: None (Your files and text are processed locally on your device with zero uploads)

Privacy & Security Guarantee

Your Novels, textbooks, advance review copies (ARCs), and poetry are processed entirely in your web browser's memory using native client-side web technologies. Unlike traditional cloud tools, your content is never uploaded to remote servers, stored on external disks, or analyzed by third parties.

2ClickKit In-Browser vs Traditional Cloud Tools

Feature 2ClickKit (In-Browser) Traditional Cloud Services
Data Privacy Files never leave your local device Uploaded to remote servers and third-party clouds
Processing Speed Instant local execution (0ms upload time) Constrained by internet upload & server processing queues
Account & Costs 100% Free with zero registration or paywalls Tiered subscriptions, limits, or forced sign-ups

Frequently Asked Questions

How do e-readers use EPUB metadata (content.opf)?

E-reader devices and reading applications (such as Apple Books, Amazon Kindle, Kobo, and Calibre) parse the Open Packaging Format (OPF) XML file located inside the EPUB container. They rely on Dublin Core tags (<dc:title>, <dc:creator>, <dc:identifier>) to index your e-book library, display cover art, group series, sort by author, and provide store synopses.

Why do sideloaded EPUBs frequently show "Unknown Author" on Kindle or Kobo?

When e-books are created via informal conversion tools, the OPF XML package frequently omits the standard Dublin Core creator tag (<dc:creator>) or mislabels it with vendor attributes. By opening the file in 2ClickKit and setting your author name properly, your e-reader hardware will categorize the book cleanly.

How does client-side EPUB editing protect self-published authors and publishers?

Authors preparing unreleased manuscript drafts, ARC (Advance Review Copy) editions, or confidential commercial books risk manuscript leaks when uploading files to cloud conversion websites. 2ClickKit executes 100% locally in your browser memory via JSZip and DOMParser. No chapter text or metadata ever leaves your local computer.

Will editing metadata alter my interior chapter formatting or fonts?

No. The editor modifies strictly the OPF package XML file (content.opf). All internal XHTML chapter texts, CSS stylesheets, custom typography, images, and NCX/NAV navigation tables are preserved bit-for-bit without alteration.

What is the required structure of an EPUB container?

Under the IDPF EPUB 3.0 and EPUB 2.0 standards, an EPUB file is an unencrypted ZIP archive containing: (1) a non-compressed "mimetype" file containing "application/epub+zip" stored at byte offset 0, (2) a "META-INF/container.xml" file identifying the location of the package document, and (3) the OPF file containing metadata, manifest items, and spine spine order.

Can I add an ISBN or DOI to my e-book?

Yes. Enter your 13-digit ISBN (e.g., 978-0-123456-78-9) or digital object identifier into the "ISBN / Identifier" field. It will be encoded into the <dc:identifier> element with proper attributes.

Does this tool support both EPUB 2 and modern EPUB 3 files?

Yes. 2ClickKit handles Dublin Core 1.1 namespace tags compatible across both legacy EPUB 2.0.1 readers and modern EPUB 3.3 standards.

Is there a limit on file size when editing large illustrated e-books?

No. Because all reading and repacking occur in your device RAM, you can easily edit graphic novels, illustrated textbooks, and multi-volume omnibuses exceeding 100MB.