Australia - Formatting standards & code snippets

Here is a complete list of standards and formats used in Australia. It includes a full list of ISO codes, number, date, currency, telephone and address formats. You will also get code examples on how to perform the most common formatting operations in Java, C#, JavaScript and PHP. Multiple resource files are made available, mainly the complete list of states, in different formats such as CSV, XML, JSON, HTML and SQL.

What are the ISO-3166-1 codes for Australia?

  • Alpha-2: AU
  • Alpha-3: AUS
  • Numeric: 036
  • Java Locale Code: en_AU
  • .Net CultireInfo Code: en-AU
  • PHP Locale Code: en_AU

What is the official language in Australia?

  • English

What is the date format in Australia?

The date format in Australia is big-endian:

  • Format: yyyy-MM-dd
    Ex: 2014-12-03 for December 3rd 2014
How to format dates for Australia in Java, C#, PHP, and JavaScript

What is the time format in Australia?

The time format in Australia is mostly 12-hour notation, but 24-hour format is also commonly adopted.

  • h:mm[:ss] AM|PM
    Ex: 9:00 AM, 9:00 PM
  • HH:mm[:ss]
    Ex: 09:00 for 9:00 AM, 21:00 for 9:00 PM
How to format time for Australia in Java, C#, PHP, and JavaScript

What is the numeric format in Australia?

    Format: 999,999,999.99

  • Group Size: 3
  • Grouping Character: , (Comma)
  • Decimal Character: . (Dot)
How to format numbers for Australia in Java, C#, PHP, and JavaScript

What is the currency format in Australia?

    Format: $999,999,999.99

  • Group Size: 3
  • Grouping Character: , (Comma)
  • Decimal Character:. (Dot)
  • Currency Symbol: $
  • Currency Symbol Position: Before number
  • Currency Name: Australian Dollar (AUD)
How to format currencies for Australia in Java, C#, PHP, and JavaScript

Download list of states for Australia in CSV, JSON, HTML, SQL and XML


List of states: HTML - Select Control

----------------------------------
 ISO-3166-2 code + Name - English
----------------------------------
<select>
	<option value="AU-NSW">New South Wales</option>
	<option value="AU-QLD">Queensland</option>
	<option value="AU-SA">South Australia</option>
	<option value="AU-TAS">Tasmania</option>
	<option value="AU-VIC">Victoria</option>
	<option value="AU-WA">Western Australia</option>
	<option value="AU-ACT">Australian Capital Territory</option>
	<option value="AU-NT">Northern Territory</option>	
</select>


List of states: CSV

code,name
AU-ACT,"Australian Capital Territory"
AU-NSW,"New South Wales"
AU-NT,"Northern Territory"
AU-QLD,"Queensland"
AU-SA,"South Australia"
AU-TAS,"Tasmania"
AU-VIC,"Victoria"
AU-WA,"Western Australia"

List of states: JSON

----------------------------------
 ISO-3166-2 code + Name - English
----------------------------------
[
	{code: "AU-ACT", name: "Australian Capital Territory"},
	{code: "AU-NSW", name: "New South Wales"},
	{code: "AU-NT", name: "Northern Territory"},
	{code: "AU-QLD", name: "Queensland"},
	{code: "AU-SA", name: "South Australia"},
	{code: "AU-TAS", name: "Tasmania"},
	{code: "AU-VIC", name: "Victoria"},
	{code: "AU-WA", name: "Western Australia"}	
]

List of states: SQL

-- -----------------------------------------------------
-- Table `state`
-- -----------------------------------------------------
DROP TABLE IF EXISTS state;

CREATE TABLE IF NOT EXISTS state (
  id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  code VARCHAR(6) NOT NULL,
  name VARCHAR(100) NOT NULL
  PRIMARY KEY (id),
  UNIQUE INDEX id_UNIQUE (id ASC),
  UNIQUE INDEX code_UNIQUE (code ASC)
) ENGINE = InnoDB;

INSERT INTO state (id, code, name) VALUES (null, 'AU-ACT', 'Australian Capital Territory');
INSERT INTO state (id, code, name) VALUES (null, 'AU-NSW', 'New South Wales');
INSERT INTO state (id, code, name) VALUES (null, 'AU-NT', 'Northern Territory');
INSERT INTO state (id, code, name) VALUES (null, 'AU-QLD', 'Queensland');
INSERT INTO state (id, code, name) VALUES (null, 'AU-SA', 'South Australia');
INSERT INTO state (id, code, name) VALUES (null, 'AU-TAS', 'Tasmania');
INSERT INTO state (id, code, name) VALUES (null, 'AU-VIC', 'Victoria');
INSERT INTO state (id, code, name) VALUES (null, 'AU-WA', 'Western Australia');

List of states: XML

<!-- ISO 3166-2 code + name - English -->
<?xml version="1.0" encoding="UTF-8"?>
<states>
	<state>
		<code>AU-ACT</code>
		<name>Australian Capital Territory</name>
	</state>
	<state>
		<code>AU-NSW</code>
		<name>New South Wales</name>
	</state>
	<state>
		<code>AU-NT</code>
		<name>Northern Territory</name>
	</state>
	<state>
		<code>AU-QLD</code>
		<name>Queensland</name>
	</state>
	<state>
		<code>AU-SA</code>
		<name>South Australia</name>
	</state>
	<state>
		<code>AU-TAS</code>
		<name>Tasmania</name>
	</state>
	<state>
		<code>AU-VIC</code>
		<name>Victoria</name>
	</state>
	<state>
		<code>AU-WA</code>
		<name>Western Australia</name>
	</state>		
</states>