Skip to main content

papersizes-guide

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

Covers 336 sizes across 24 series: ISO A, B and C, US and ANSI, ARCH, envelopes, photo prints, business and ID cards, book trim sizes, square formats (sticky notes, origami, CD and vinyl sleeves, square prints), 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.

Metadata

Release files for papersizes-guide 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for papersizes-guide 1.1.1
File Size Uploaded Provenance Actions
papersizes_guide-1.1.1.tar.gz 15.7 kB With provenance Details for papersizes_guide-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for papersizes-guide 1.1.1
File Interpreter ABI Platform Actions
papersizes_guide-1.1.1-py3-none-any.whl Python 3 none any Details for papersizes_guide-1.1.1-py3-none-any.whl

Total release size: 32.7 kB

Release files / papersizes_guide-1.1.1.tar.gz

Download URL papersizes_guide-1.1.1.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
01597792365beb3ada44b063b11b93a3fa443fbf1173511a636ebd471015247f
BLAKE2b-256 checksum
How to use checksums
569ce3f06af7b396e7afdb7980a58eb593b9232ad5af912a6cf269d132e630b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / papersizes_guide-1.1.1-py3-none-any.whl

Download URL papersizes_guide-1.1.1-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40f5cc41132cb303098356774b425494ae4a92b28216a267ccb76e438dcf75e6
BLAKE2b-256 checksum
How to use checksums
bd438425e0b63eba1b566c88103193c13880ffcd37d2d6c87b70393454d58ae2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Security for papersizes-guide 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for papersizes_guide-1.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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