Factorio

Cheats & codes

Factorio Cheat Codes

Grouped by type and platform, each one labelled reported working or tested.

There are 37 cheat codes for Factorio across PC (Microsoft Windows). Each code below lists the exact button combination or console command, what it does, and whether using it disables achievements.

Verified

Console commands

37

Change player colour

Recolours your character and map marker, accepts preset colour names or an RGB triplet

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Cheat mode all research

Completes all research and turns on cheat mode, the all form also hands you a starter set of extra items

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Disables achievements for this save

Clear console

Clears all text out of the console window

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Clear pollution

Wipes out all pollution currently spread across the map

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Disables achievements for this save

Command help

Lists every available console command, or shows help for one specific command if you name it, short form is /h

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Console calculator

Uses the console as a calculator and prints the result of the maths inside the brackets

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Disables achievements for this save

Disable friendly fire

Stops your own turrets, weapons and vehicles from hurting friendly buildings and players

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Disables achievements for this save

Disable pollution generation

Stops new pollution being generated at all, set it back to true to re-enable it

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Disables achievements for this save

Enable cheat mode

Everything becomes free to build and research is instant.

Open the console and type the command.

PC Reported working
Did this work for you?

This permanently disables achievements for the save. There is no way back.

Extra inventory slots

Adds 300 extra slots to your personal inventory, change the number to taste

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Disables achievements for this save

Far zoom out

Zooms the camera much farther out than the normal limits allow, zooming too far can hurt performance

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Disables achievements for this save

Fast hand crafting

Massively speeds up hand-crafting, lower numbers give a smaller boost

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Disables achievements for this save

Fast manual mining

Massively speeds up how fast you mine by hand, lower numbers give a smaller boost

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Disables achievements for this save

Free instant crafting

Turns on free, instant crafting of any item without needing materials, change true to false to switch it back off

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Disables achievements for this save

Freeze time of day

Freezes the time of day exactly where it is, use false to let time flow again

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Disables achievements for this save

Game speed

Runs the whole simulation at double speed, 1 is normal, higher numbers are faster, decimals below 1 slow it down

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Disables achievements for this save

Give yourself items

Puts the named item into your inventory.

Open the console and type the command.

PC Reported working
Did this work for you?

Also disables achievements permanently.

Insert item

Puts 100 of the named item straight into your inventory, swap the internal item name and count for whatever you need

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Disables achievements for this save

Kill all enemies

Kills every mobile enemy unit, biters and spitters, currently alive

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Disables achievements for this save

Map editor

Switches the map editor on or off so you can edit terrain and entities directly

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Disables achievements for this save

Open the console

Opens the command console.

Press the grave key during play.

PC Reported working
Did this work for you?

Peaceful mode

Makes biters passive so they will not attack unless provoked, use false to restore normal aggression

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Disables achievements for this save

Permanent daylight

Locks the world in permanent daylight, use false to restore the day and night cycle

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Disables achievements for this save

Refill resource patch

Tops up the resource patch, ore, oil and similar, your cursor is hovering over to the amount you set

Hover a resource tile first, press ` or ~ to open console then type

PC Reported working
Did this work for you?

Disables achievements for this save

Remove decoratives

Removes decorative ground clutter such as grass tufts and small rocks from loaded chunks

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Disables achievements for this save

Research all technologies

Instantly finishes every technology in the research tree

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Disables achievements for this save

Research everything

Completes the entire technology tree.

Open the console and type the command.

PC Reported working
Did this work for you?

Also disables achievements permanently.

Reset biter evolution

Resets biter evolution back to zero so enemies stay at their weakest, 1 is the maximum

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Disables achievements for this save

Reset force

Wipes your force back to a fresh start, clearing researched tech, bonuses and map charting

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Disables achievements for this save

Reveal map area

Reveals a large square of the map around you, like a super-powered radar scan, adjust the radius number to change the area

Press ` or ~ to open console then type as one line

PC Reported working
Did this work for you?

Disables achievements for this save

Reveal the map

Charts the area given.

Open the console and type the command.

PC Reported working
Did this work for you?

Show evolution

Prints the current biter evolution percentage and what is driving it

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Show game time

Shows how old the current map or save is in game time

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Show map seed

Prints the seed number the current map was generated from

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Show rail block visualisation

Always shows rail block colours instead of only while holding a signal, use false to turn it off again

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Disables achievements for this save

Teleport to coordinates

Instantly moves your character to the map coordinates in brackets, replace 0, 0 with the X and Y you want

Press ` or ~ to open console then type

PC Reported working
Did this work for you?

Disables achievements for this save

Unlock shortcut bar

Unlocks every shortcut bar tool at once, including blueprint import, copy and paste, deconstruction and upgrade planners

Press ` or ~ to open console then type

PC Reported working
Did this work for you?
A code stopped working after a patch? Tell us and we will retest it. Know one we are missing? Submit it here. What the tested badge means, and which codes carry it.

Tools for Factorio cheats

Quick answers

About Factorio cheats

How many cheats does Factorio have?
This page lists 37 for Factorio, all of them console commands.
How do you open the console in Factorio?
Open the console: `. Press the grave key during play.
How do you enter cheats in Factorio?
Press ` or ~ to open console then type. A few codes use a different method, shown beside each one.
Do cheats disable achievements in Factorio?
28 of the 37 codes here carry a warning about achievements or trophies. The note reads: "Disables achievements for this save."
Which platforms are these Factorio cheats for?
The codes on this page are listed for PC (37 codes). Where the game came out on other systems, the codes may differ there.
Are these Factorio cheats still working?
All 37 are marked "Reported working": each comes from a documented source, and none has been run by us yet. A code we test gets a dated "Tested" badge.