Ireland's two-digit country code is IE. That is the code you enter in any dropdown, form or database field asking for a two-letter country code; it comes from ISO 3166-1 alpha-2, the standard that assigns a two-letter code to nearly every country and territory.
Write it in capitals as IE. If a form is case-sensitive or a spreadsheet is matching values exactly, lowercase "ie" may fail, even though the code itself is the same.
IE Is the Only Two-Letter Code Ireland Has
ISO 3166-1 gives each country three codes at once: a two-letter alpha-2 code, a three-letter alpha-3 code, and a numeric code. For Ireland they are IE, IRL and 372.
The two-letter code is the one most software actually uses. Payment forms, address blocks, shipping labels, analytics dashboards and customs paperwork often ask for it because it is short enough to fit in a fixed-width field and unambiguous enough that no lookup table is needed.
Where each version shows up
IE appears in country dropdowns, tax and VAT settings for business accounts, and most web forms. IRL appears in places that follow the three-letter convention, such as airport and airline systems, sports results and some banking and trade documentation. The number 372 appears in statistical datasets and in some international mailing systems, but you will rarely be asked to type it by hand.
The three never compete. A field that wants two characters will reject IRL; a field that wants three will reject IE. Read the placeholder text or the field label before you type, because the length of the box is usually the only clue you get.
Ireland Is IE, Not IR or EI
The single most common error is typing IR. It feels natural, since IR is close to "Ireland" and to the .ie domain, and plenty of people also try EI because those are the two letters in the country's name in reverse. Neither is correct in a two-letter country field.
There is a real reason for the confusion: IR is not a country code at all in ISO 3166-1, and EI is not one either. If a system accepts IR, it is either using a different, non-standard list or quietly mapping your input to something else. Check what the field stored after you save, rather than trusting that it took.
Two-letter codes are not always the first two letters of the country name. Germany is DE, Spain is ES, the Netherlands is NL, Switzerland is CH and Portugal is PT. Ireland follows the same logic as those: the code is drawn from the country's name in a way that keeps the list unique, not from a simple truncation.
Why it looks like it should be IR
The domain suffix .ie, the car registration plate lettering and the word "Ireland" itself all push the eye toward an I followed by a vowel. The code is still IE. When you are filling in a form in a hurry, that mismatch is exactly when the wrong value slips through.
IE Covers the Republic, Not Northern Ireland
This trips up people sending post or filling in an address for a customer near the border. ISO 3166-1 assigns IE to Ireland, meaning the Republic of Ireland. Northern Ireland is part of the United Kingdom and takes the UK code.
So a delivery address in Belfast or Derry is UK, not IE, even though it is on the island of Ireland. A shipping system that asks for the country will expect UK for those addresses, and entering IE can send a parcel into the wrong customs and postal route.
If a form offers a separate region or county field alongside the country, that is where a county such as Donegal or Antrim belongs. The two-letter field stays IE or UK; the county is a separate answer.
The Two-Digit Code Is Not the Phone Code
Ireland's international dialling code is +353, which is three digits, not two. People searching for a "two-digit country code" sometimes actually want the dialling prefix, so it is worth separating the two clearly.
Use IE in an address or form field. Use +353 in front of a phone number when calling Ireland from abroad, dropping the leading 0 from the local number. A Dublin landline written locally as 01 followed by the number becomes +353 1 followed by the same number. A mobile written 087 followed by seven digits becomes +353 87 followed by those seven digits.
Inside Ireland you dial the number as written, with the leading 0. The country code only enters the picture when the call crosses a border, and then it is +353, never IE.
Related codes you may need at the same time
Currency fields for Ireland use EUR. The language code is EN for English, with GA for Irish where a system supports both. The domain suffix is .ie. Each of these sits in a different field from the two-letter country code and none of them can be substituted for it.
A Quick Way to Confirm Any Two-Letter Code
If you are not certain of a code, do not guess from the country's spelling. Use a source that lists the standard, such as the ISO 3166-1 alpha-2 list maintained by the International Organization for Standardization, or the country list published by the postal service of the destination country.
For a form you are building rather than filling in, the safer design is to offer the full country name in a dropdown and store the two-letter code behind it. That removes the chance of a user typing IR or EI by hand.
Validate against a fixed list of valid alpha-2 codes rather than a pattern of two letters. A two-letter check passes "XX" and "ZZ" and every other invented pair, which leaves bad data in your address table that is hard to clean up later.
If a system rejects IE
Read the error message before changing anything. If it says the field expects three characters, the field wants IRL. If it says the country is not recognised, the list may be a local or legacy one; check the dropdown for Ireland's position and select it rather than typing. If your entry saves but the address then fails validation elsewhere, confirm an accidental space before or after the letters, which many systems do not trim.
The short version to keep: two letters, capitals, IE; three letters, IRL; dialling, +353; and Northern Ireland is UK.