Address Formatter
Format and validate postal addresses with country-specific templates and options.
- Recipient or Organization required
- Street or address line required
- City/Locality required
- State required
- Postal code required
Address Formatter Guide
The Address Formatter tool helps you standardize and validate postal addresses using country-specific formatting rules. It supports both single address processing and bulk operations, with options for structured input, freeform parsing, and various export formats.
Single Address Mode
In single mode, you can format one address at a time. Choose between structured fields or paste a freeform address block.
Structured Input
Fill in the individual fields for recipient, organization, house number, street, address lines, locality, administrative area, and postal code. The tool dynamically adjusts labels based on the selected country (e.g., "State" for US, "Province" for CA).
Example (US):
- Recipient: John Doe
- Organization: Acme Inc.
- House Number: 123
- Street: Main St
- Address Line 2: Apt 4B
- Locality: San Francisco
- Administrative Area: CA
- Postal Code: 94107
Formatted (International):
John Doe
Acme Inc.
123 Main St Apt 4B
San Francisco, CA 94107
United States
Freeform Input
Paste a multi-line address, and the tool will attempt to parse it into structured fields based on the selected country. Click "Parse" to extract components.
Example Input:
John Doe
Acme Inc.
123 Main St Apt 4B
San Francisco, CA 94107
United States
Country Selection
Choose from supported countries including US, Canada, UK, Germany, France, India, Australia, and Japan. Each has unique postal code validation and formatting templates.
Example (UK):
Formatted: Mr John Smith
BBC Broadcasting House
Portland Place
London W1A 1AA
United Kingdom
Formatting Styles
- International: Multi-line format suitable for envelopes.
- National: Local format variation (e.g., different line order).
- Single Line: Comma-separated on one line.
Options
- Include/exclude recipient and organization lines.
- Uppercase all lines.
- Line endings: LF (\n) or CRLF (\r\n).
- Custom separator for single-line format (default: ", ").
Validation
The tool validates required fields and postal code formats per country. Issues are displayed below the actions.
Actions
- Copy formatted address to clipboard.
- Download as TXT file.
- Clear all fields.
- Refresh (reapply formatting).
Bulk Address Mode
Process multiple addresses at once from CSV, TSV, JSON, or freeform text blocks.
Input Modes
- Auto: Detects format automatically.
- CSV/TSV: Comma/tab-separated with headers like "recipient,street,city,state,postalCode,country".
- Freeform Blocks: Addresses separated by blank lines.
- JSON: Array of objects or single object with address fields.
CSV Example:
recipient,organization,street,locality,administrativeArea,postalCode,country
John Doe,Acme Inc.,123 Main St,San Francisco,CA,94107,US
Jane Smith,,456 Oak Ave,London,,SW1A 1AA,GB
JSON Example:
[
{"recipient": "John Doe", "street": "123 Main St", "locality": "San Francisco", "administrativeArea": "CA", "postalCode": "94107", "country": "US"},
{"recipient": "Jane Smith", "street": "456 Oak Ave", "locality": "London", "postalCode": "SW1A 1AA", "country": "GB"}
]
File Upload
Upload CSV, TSV, TXT, or JSON files directly.
Processing
Each address is parsed, validated, and formatted. Use a fallback country if not specified.
Statistics
Displays total addresses, valid count, invalid count, and unique formatted outputs.
Preview
Shows formatted results with validation status (green for valid, red for invalid with issues).
Exports
- Copy all formatted addresses.
- Download TXT (one address per block).
- Export CSV with original and formatted columns.
- Export JSON with validation details.
Examples
US Address
Input: John Doe, 123 Main St Apt 4B, San Francisco CA 94107
Formatted (International):
John Doe
123 Main St Apt 4B
San Francisco, CA 94107
United States
Canadian Address
Input: Jane Smith, 456 Queen St, Toronto ON M5H 2N2
Formatted:
Jane Smith
456 Queen St
Toronto ON M5H 2N2
Canada
German Address
Input: Herr Müller, Goethestr. 5, 80336 München
Formatted:
Herr Müller
Goethestr. 5
80336 München
Deutschland
Japanese Address
Input: Tanaka Taro, 1-2-3 Shibuya, Shibuya-ku, Tokyo 150-0002
Formatted:
150-0002
東京都渋谷区渋谷1-2-3
田中太郎様
Single Line Example
With separator ", ":
John Doe, 123 Main St Apt 4B, San Francisco, CA 94107, United States
Tips
- Use structured input for precise control.
- Freeform parsing works best with standard formats ending with country.
- Check validation for postal code errors.
- Bulk mode is efficient for mailing lists.
- Settings persist across sessions via localStorage.
