Skip to main content

papersizes-guide

Every standard paper size, offline. No network calls, no API key, no dependencies.

Covers 324 sizes across 23 series: ISO A, B and C, US and ANSI, ARCH, envelopes, photo prints, business and ID cards, book trim sizes, newspapers, billboards, and regional standards from Japan, China, France, Canada, Colombia and the British Imperial system.

pip install papersizes-guide

Use

import papersizes_guide as paper

a4 = paper.get("A4")
a4.width_mm        # 210.0
a4.height_in       # 11.69
a4.pixels(300)     # (2480, 3508)
a4.ratio_label     # '1:√2'
a4.weight(80)      # 4.992  (grams, one sheet at 80 gsm)

Look a size up by slug, name or alias:

paper.get("a4")
paper.get("DIN A4")
paper.get("No. 10 envelope")

Identify a sheet you have measured. Orientation does not matter:

paper.find(8.5, 11, unit="in")[0].size.name   # 'Letter'
paper.find(216, 356)[0].size.name             # 'Legal'
paper.find(297, 210)[0].rotated               # True — that is A4, turned

Work with a whole series:

[s.name for s in paper.series("a")]   # A0 … A10, plus 2A0 and 4A0
paper.series_list()                   # every series with its governing standard

Why derived, not stored

Only the millimetre dimensions are stored. Inches, points, pixels, ratio, area and sheet weight are properties computed on access, so the package cannot contradict itself and adding a resolution costs nothing.

API

Call Returns
all_sizes() Every size
get(name_or_slug) One PaperSize, or None
find(w, h, unit="mm", limit=6) Nearest matches, closest first
series(slug) Sizes in one series
series_list() The series index
VERSION Dataset version, e.g. 2026.09.07

Each PaperSize exposes width_mm, height_mm, width_cm, height_cm, width_in, height_in, width_pt, height_pt, ratio, ratio_label, area_mm2, area_m2, diagonal_mm, orientation, plus pixels(dpi) and weight(gsm). Frozen dataclasses, fully typed, py.typed included.

When two sizes share exact dimensions, such as Letter and ANSI A, find returns the more familiar one first.

Data and licence

The dataset comes from papersizes.guide and is released under CC BY 4.0. Use it commercially, modify it, redistribute it. The only condition is credit.

ISO and ANSI values are generated from the standard formulas rather than transcribed. Regional and historical sizes are cross-checked against at least two published references, and any size whose sources disagree carries a note on its page. The full process is documented at papersizes.guide/methodology.

To cite the dataset:

PaperSizes.guide paper size dataset, version 2026.09.07.
https://papersizes.guide/data/ — CC BY 4.0

A live REST API of the same data, with no key, is documented at papersizes.guide/data.

Found an error in a dimension? Report it and it will be corrected with the correction noted.

Source, and where to report a wrong dimension in code: github.com/nanosani/papersizes-guide.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

papersizes_guide-1.0.0.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

papersizes_guide-1.0.0-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file papersizes_guide-1.0.0.tar.gz.

File metadata

  • Download URL: papersizes_guide-1.0.0.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.5

File hashes

Hashes for papersizes_guide-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2db8f71434d44cff17ec7a817784e065e351639a0bacc3748b7f944da7d88060
MD5 45b60a8c3cc3afb4c52961c9c95c8263
BLAKE2b-256 86a256e7a7b412dc1e14ac601630552d1ce1b960ec29f303348a8494b87b7429

See more details on using hashes here.

File details

Details for the file papersizes_guide-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for papersizes_guide-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a6c519ad9c9a3518f2c00dd2a260e5b7d614e2b1fb819f2c92dc829be6db4b8
MD5 9b93a6e69a06ccefd72d4b2a8c5ffbe1
BLAKE2b-256 f1bc1515bf2eda2469dbfb16da1f2855f390269869c3a78c77ded37f20aaf265

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.1

2 files

This release

1.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page