Portugal Postal Code Format
A country-level reference for how postal and ZIP codes are structured in Portugal.
- Postal format
- PT : NNNN-NNN
- Library format pattern
- ^[0-9]{4}-[0-9]{3}$
- Format test inputs (not verified assigned codes)
- 1234-123
These strings come from software tests, not a directory of assigned postal codes. They are checked using the library's country-specific separator rules before display. A format match does not establish assignment or deliverability.
Check a postal code format
Enter a code to compare its syntax with the pattern above. The checker ignores letter case and trims outer whitespace. ASCII spaces are removed; hyphens are preserved. Other internal whitespace is preserved. These are the separator rules declared by this library version.
A format match does not confirm assignment, an address, or delivery availability.
Source and limits
The format description, pattern, and test inputs are imported from postal-codes-js 2.5.2 (Apache-2.0). Inputs originate in the library's TestData.Valid fixtures. Their label means they were supplied for software testing; it does not establish that a postal service assigned them.
This is a versioned software reference, not a live postal directory. We have not independently verified every country's current rules. For an actual shipment, check the full address and postcode with the destination postal operator or carrier.