StellarisCommands.com

How to Find IDs in Stellaris with debugtooltip (Species, Leaders, Planets & More)

Use debugtooltip to read the hidden IDs that targeted console commands need.

Many of the most useful Stellaris commands act on a specific target — a planet, a leader, a species, a pop — and they identify that target by a numeric ID the game normally hides. The debugtooltip command surfaces those IDs so you can feed them into other commands. First, open the command console (~).

Turn on debugtooltip

Type the command once to switch the extra tooltip information on:

It's a toggle — run it again to turn the ID display back off. Full details are on the debugtooltip command page.

Read the ID you need

With debugtooltip active, hover the mouse over the thing you want the ID of and read it from the tooltip:

  • Planets — hover a planet in the system view to see its planet ID.
  • Species — open the species menu and hover a species for its species index.
  • Leaders — hover a leader (ruler, scientist, admiral, governor) for their leader ID.
  • Empires / countries — hover an empire in the contacts or diplomacy view for its country ID.
  • Pops & ships — hover a pop on a planet or a ship in a fleet for its ID.

Use the ID in a command

Once you have an ID, drop it into a targeted command. For example, to take ownership of the planet whose ID is 30:

Browse the full list of console commands to find the ones that take an ID argument.

Tips

  • debugtooltip also reveals other hidden values — event IDs, modifier names and flags — which is handy when building more advanced effect commands.
  • It only changes what tooltips display; it doesn't affect your save or disable anything on its own. (The console still disables achievements for the session, and is off in Ironman.)

Frequently asked questions

How do you find IDs in Stellaris?

Open the console and type debugtooltip. With it on, hovering over species, leaders, planets, ships, pops and empires shows their hidden numeric ID in the tooltip.

How do you turn off debugtooltip?

debugtooltip is a toggle — run the command a second time to switch the ID display back off.

Which commands need an ID?

Many targeted commands do — for example own a planet by ID, or kill_pop, add_trait_leader and force_add_ship-style commands that act on a specific entity. Use debugtooltip to read the ID first.