Trainer ID number

This Pikipek's Trainer's ID number is 291177.

A Pokémon Trainer's ID number (Japanese: IDNo.) is a randomly generated number that is assigned to a player when they create a new save file. Any Pokémon that this Trainer obtains have the number shown in their summary; it is used, in conjunction with the Trainer's name and gender, to identify whether the Pokémon is an outsider Pokémon. The ID numbers of a player's Pokémon are also used in the Loto-ID to determine whether they will win a prize, and if so which prize they will win. Finally, starting in Generation III, whether a Pokémon is Shiny is determined by a formula that takes into consideration their ID number and personality value.

The smallest possible Trainer ID number is 0. Prior to Generation VII, the largest was 65535; starting in Generation VII, it is instead 999999.

Eggs use ????? (prior to Generation VII) or ?????? (from Generation VII onwards) as their ID number until they are hatched. Unpurified Shadow Pokémon also use ????? as their ID number until they are purified, at which point the number changes to that of the Trainer who snagged the Pokémon.

Secret ID

From Generation III onward, in addition to their regular ID numbers, Trainers and Pokémon are also assigned a second, unseen ID number different from the visible one. This number exists to reduce the chances of the games erroneously identifying a Pokémon from another Trainer as not being an outsider Pokémon, since even if two Trainers share the exact same name, gender and Trainer ID number, the game will still recognize their Pokémon as coming from different Trainers should their secret ID numbers be different. A Pokémon's secret ID number is also used along with its main ID number and personality value in determining if it is Shiny. Although a secret ID number cannot be viewed without cheating devices, it is possible to calculate it.

Secret IDs of Pokémon obtained prior to Generation VII are five digits long; those of Pokémon obtained in Generation VII onwards are four digits long. Pokémon transferred to Pokémon Bank from the Virtual Console releases of Generations I and II are given a secret ID of 0.

If two different Trainers have the same Trainer name and gender, as well as identical ID numbers and secret ID numbers (a 1 in 4,294,967,296 chance), the games will recognize the two Trainers as the same and will not consider their Pokémon to be outsider Pokémon, which can cause minor bugs related to met location. For example, Pokémon Colosseum and Pokémon XD use location index numbers that conflict with each other, so if one player has a Pokémon from the other game yet that Pokémon is not an outsider, it will likely display the wrong met location rather than the fallback "distant land" normally used for outsider Pokémon. Conversely, Pokémon Ruby and Sapphire (not Emerald) and Pokémon FireRed and LeafGreen use location index numbers that are incompatible but do not overlap, so if one player has a Pokémon from the other game that is not an outsider, it will display the otherwise-unreadable text "Met somewhere." rather than the correct "Met in a trade."

Alterations in Generation VII

From Generation VII onward, the Trainer ID is a six-digit number instead of a five-digit number. Instead of generating two 16-bit numbers (between 0 and 65535), one for Trainer ID and one for secret ID, the game instead generates one 32-bit number (between 0 and 4,294,967,295), then takes the last six digits as the Trainer ID. The first four digits then essentially become the secret ID, ranging from 0 to 4294.

If a Pokémon is transferred to Generation VII or later from a previous generation, its Trainer ID and secret ID will both remain 5 digits long.

Special ID numbers

Main article: List of notable ID numbers

In most cases, Pokémon received from in-game trades, events, or other such special conditions have a predetermined ID number.


Main article: Pokémon Lottery Corner

Once per week in Generation II and once per day in Generations III, IV, VI, VII, and VIII, the player may take part in the Loto-ID. This involves the generation of a random five-digit number, which is compared with the player's Pokémon's ID numbers. Depending on the game and the nature of the matching digits, the player can receive a prize. This feature was not included in the Generation I or Generation V games, and was also absent from Pokémon Legends: Arceus.

Differing events

Some events in the games differ depending on the player's ID number. These usually utilize the last digit or the number modulo as the number of variations of the event. As the ID number can't be modified after the creation of a save file, these events are set as soon as a new file is created. These events include:

Generation II

Generation III

Mixing records allows players to exchange events.

Generation IV

Generation V

Generation VI


Additionally, some features such as the coloration of nicknamed Pokémon in Pokémon Stadium 2, the password for resetting time in Pokémon Gold, Silver, and Crystal, Walda's wallpapers in Pokémon Emerald, and Primo's gifts are calculated using the player's ID number for their outputs. A password generator, such as the one found in, is required to determine the inputs to trigger some of these events, while others, such as the rate at which specific Unown forms spawn in Pokémon FireRed and LeafGreen or the two remaining Munchlax Honey Trees, use the secret ID number for their calculations.

In other languages

Language Title
Chinese Cantonese ID No.
Mandarin ID No.
  Danish ID-nummer
  French ID
  German ID-Nummer
  Italian ID
  Korean IDNo.
  Spanish N.º ID
Número Identificador*
  Swedish ID-nummer

  This game mechanic article is part of Project Games, a Bulbapedia project that aims to write comprehensive articles on the Pokémon games.