Chuyển tới nội dung
Number Buffet

Mã bưu chính

Mã bưu chính hợp lệ về khuôn dạng cho 16 nước — để thử biểu mẫu địa chỉ và quy tắc kiểm tra, không dùng để gửi thư.

Đọc 2 phút

Thiết lập

Thiết lập nhanh

The same seed always produces the same codes, so a shared link reproduces them exactly.

Where a country publishes a non-geographic or test range, use only that. Currently the UK (ZZ99), which standard postcode validators reject by design.

Tinh chỉnh dáng vẻ

Hãy chọn một thiết lập cạnh ảnh trước — các điều khiển này điều chỉnh nó.

Frame

A border drawn inside the edge of the image.

Nâng cao

Kết quả

20 giá trị

39268, 33912, 01438, 01222, 30209, 27209, 69236, 44942, 01762, 50238, 60703, 51844, 73896, 96540, 22847, 89216, 63994, 74499, 80652, 28184

Pattern NNNNN. These are structurally valid and will pass a format check, but a generated code is not necessarily an assigned one — do not use them to address real mail.


Tạo ảnh

Hãy bật JavaScript để tạo kiểu cho những số này và tải về dưới dạng ảnh. Bản thân các giá trị đã được liệt kê ở trên.

Text on the image

Drag a line straight onto the picture to place it — once placed, it stays exactly where you put it. Everything here is drawn into the download.

Bài viết nền bên dưới chưa được dịch và đang hiển thị bằng tiếng Anh.

Về mã bưu chính

Postal codes are a twentieth-century answer to a nineteenth-century problem: as mail volumes grew, sorting by written address became the bottleneck, and sorting by a short code that a machine could read did not.

Britain moved first in a limited way. London was divided into postal districts in 1857 — the EC and WC that still survive — and the scheme was extended with numbered subdivisions in 1917. Germany introduced a national two-digit system in 1941. The United States added Zone Improvement Plan codes in 1963, which is where the acronym ZIP comes from, and the ZIP+4 extension followed in 1983 to identify a specific block or building.

The United Kingdom's full alphanumeric postcode rolled out nationally between 1959 and 1974, and it is by some distance the most intricate format in common use. A postcode splits into an outward code identifying a sorting area and an inward code identifying a delivery point, and the outward code alone has six legal shapes. Certain letters are excluded from certain positions because they are too easily confused when handwritten or read by machine — Q, V and X never begin a postcode, and C, I, K, M, O and V never appear in the final pair.

That intricacy is why UK postcode validation is a well-known source of software bugs. Developers routinely write a regex that rejects legitimate addresses, and the format is irregular enough that even official guidance has carried patterns with errors in them. Canada's format has similar exclusions and a similar reputation.

The codes are also geography. Because a UK postcode resolves to roughly fifteen addresses, it functions as a fine-grained location identifier, and postcode-level data underpins a great deal of census analysis, insurance pricing and electoral work.

Tính chất chính

  • The codes here are structurally valid but not guaranteed to be assigned — they test a parser, not a delivery route.
  • UK postcodes exclude Q, V and X from the first position, and C, I, K, M, O and V from the final two letters, to avoid misreading.
  • Canadian postal codes omit D, F, I, O, Q and U throughout, and additionally W and Z from the first position.
  • ZIP+4 narrows a US ZIP code to a specific block, building or large recipient, rather than a whole area.
  • ZZ99 is Royal Mail’s non-geographic range, used for overseas and unknown addresses and reserved from ordinary allocation.
  • Generation is seeded, so the same seed and country always return the same list — a shared link reproduces it exactly.
  • Several countries, including Ireland before 2015, managed without a national postal code system at all.

Xuất hiện ở đâu

  • Address form validation, which is where most developers meet postal-code regexes and where most of them get the UK format wrong.
  • E-commerce checkout and shipping-rate calculation, which route on the postal code before any other address field.
  • Census and statistical geography: UK output areas and US ZIP Code Tabulation Areas are both built on postal boundaries.
  • Insurance and credit pricing, where postcode-level risk models have repeatedly raised questions about proxy discrimination.
  • Test fixtures and seed data for any application that stores addresses.

Cách dùng bộ tạo này

Các giá trị được tạo hiện ở trên cùng, bên cạnh là nút sao chép. Để biến chúng thành ảnh, hãy chọn một dáng vẻ trong các kiểu ở phần Tạo ảnh, chọn kích thước xuất rồi tải về dưới dạng PNG, JPEG hoặc WebP. Mọi thứ được vẽ trong trình duyệt, nên không có gì bạn tạo ra được gửi tới máy chủ.

Thanh địa chỉ cập nhật theo lúc bạn làm, nên liên kết luôn cho lại đúng những gì bạn đang thấy — tiện khi muốn chia sẻ một dãy cụ thể hay giữ lại một cấu hình. Dùng Sao chép để lấy giá trị dưới dạng văn bản thuần, hoặc Xuất dữ liệu để có CSV, JSON, NDJSON, SQL và XML.

Nguồn

Các phần tóm lược lịch sử trên trang này dựa vào những tài liệu giấy phép mở được liệt kê ở trên. Thấy chỗ nào sai? Hãy cho chúng tôi biết và chúng tôi sẽ sửa.