Do Train Stations Have IATA Codes? Yes, and Strasbourg Has Three

By the data team | November 2026 | 5 minute read

Strasbourg has three IATA codes. One belongs to the airport, SXB. One belongs to the railway station, XWG. One belongs to the bus station, XER. If you book a flight to Strasbourg and do not look closely, you might buy a ticket that ends at a train platform, not a runway. That is not a glitch. IATA issues three-letter location codes to railway stations, bus stations, and ferry terminals when an airline needs them for a ticket that mixes air and ground travel.

The rule comes from IATA Resolution 763. A code goes to an airport that receives airline service, or to a location that must be identified for intermodal transportation. The key phrase is that second clause. IATA only issues a code when a commercial airline asks for one, because the code exists to sell a ticket, not to label a building. A railway station gets a code when a passenger can buy one ticket that covers a flight and a train ride, with baggage checked through to the final stop. No airline request, no code. That is why most train stations have no IATA code at all, while a few dozen busy ones do.

There is a tell for spotting them. Non-airport IATA codes usually begin with Q, X, or Z, letters rarely used as the first letter of a real airport code. Penn Station in New York is ZYP. Metz railway station is XZI. The German rail network even shares a collective code, QYG, covering all German railway stations in airline booking systems. Once you know the pattern, the codes stop looking like typos. A booking engine showing XWG as a destination is telling you, in its own shorthand, that your journey ends on rails.

Do train stations have IATA codes, and why would you ever use one?

The practical case is the air plus rail ticket. KLM sells trips to Antwerp and Brussels that end with a high speed train into Amsterdam Schiphol, booked on one ticket. Lufthansa does the same from Frankfurt Airport to German cities by rail. The passenger checks in once, and the train leg sits in the reservation exactly where a connecting flight would sit. If the flight is delayed, the airline rebooks the train leg, because it sold the whole journey. Book the train separately and that protection disappears. That is the whole point of giving a station a code: it lets the airline system treat a train like a flight for ticketing, baggage, and disruption handling.

I should be clear about what these codes are not. They are not ICAO codes. ICAO issues four-letter codes for flight operations, and a railway station will never hold one, because no aircraft lands there. They are also not Amtrak station codes. Amtrak runs its own three-letter system for its own stations, and those codes overlap with IATA codes by coincidence, not by design. And a station sharing a code with its city airport is a different case again. Newark Liberty International Airport Station carries EWR, the same code as the airport two kilometres away, because the station exists to serve the airport. Strasbourg is the interesting case precisely because the station code differs from the airport code, which is how a booking can quietly send you to the wrong one.

My advice is simple, and it comes from watching people get caught by this. When a search result shows a destination code starting with Q, X, or Z, stop and read the itinerary line by line. Check whether the last segment says flight, train, or bus. Check the arrival station name, not just the city. And if you are booking a trip that ends at a small European city with no airport of its own, expect a rail leg, because that is usually how the airline gets you there. The code did its job. It just did not explain itself.

You can look up any US airport code, IATA and ICAO, in the free database on this site, with a CSV download if you want the whole list. The database covers airports only, so a station code like ZYP will not appear there, but the search will show you the nearest real airport, which is usually the point. For the other half of the pair, see IATA vs ICAO codes and how airport codes are assigned.

Search the free US airport codes database

Related reading: IATA vs ICAO Codes: What Is the Difference? | How Are Airport Codes Assigned? | Why Do US ICAO Airport Codes Start With K? | Get the weekly money guide

Frequently asked questions

Do train stations have IATA codes?
Yes. IATA issues three-letter location codes for railway stations, bus stations, and ferry terminals that are part of intermodal ticketed journeys, usually starting with Q, X, or Z.

Why would a train station need an airport code?
So an airline can sell one ticket covering a flight plus a train or bus leg, with through check-in and rebooking protection if the flight is delayed. The code lets the booking system treat the ground leg like a connecting flight.

What is the IATA code for New York Penn Station?
ZYP. It starts with Z, the usual marker for a non-airport location code.

Does a train station IATA code mean it also has an ICAO code?
No. ICAO codes are four-letter flight operations codes issued for aerodromes. A railway station has no runway, so it never holds an ICAO code.

Can booking a flight to a station code send you to the wrong place?
Yes, if you do not read the itinerary. Strasbourg has SXB for the airport, XWG for the railway station, and XER for the bus station. Always check whether the final segment is a flight, train, or bus.

Sources: IATA, Location Codes fact sheet (Resolution 763); Wikipedia, List of IATA-indexed railway stations. Figures verified November 2026.

Every US airport code, IATA and ICAO, searchable with a CSV download. Subscribe to the newsletter.