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.
Console commands
37Change player colour
Recolours your character and map marker, accepts preset colour names or an RGB triplet
Press ` or ~ to open console then type
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
Disables achievements for this save
Clear console
Clears all text out of the console window
Press ` or ~ to open console then type
Clear pollution
Wipes out all pollution currently spread across the map
Press ` or ~ to open console then type
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
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
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
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
Disables achievements for this save
Enable cheat mode
Everything becomes free to build and research is instant.
Open the console and type the command.
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
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
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
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
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
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
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
Disables achievements for this save
Give yourself items
Puts the named item into your inventory.
Open the console and type the command.
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
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
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
Disables achievements for this save
Open the console
Opens the command console.
Press the grave key during play.
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
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
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
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
Disables achievements for this save
Research all technologies
Instantly finishes every technology in the research tree
Press ` or ~ to open console then type
Disables achievements for this save
Research everything
Completes the entire technology tree.
Open the console and type the command.
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
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
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
Disables achievements for this save
Reveal the map
Charts the area given.
Open the console and type the command.
Show evolution
Prints the current biter evolution percentage and what is driving it
Press ` or ~ to open console then type
Show game time
Shows how old the current map or save is in game time
Press ` or ~ to open console then type
Show map seed
Prints the seed number the current map was generated from
Press ` or ~ to open console then type
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
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
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
Tools for Factorio cheats
-
Why is my cheat not working?
Answer a few questions and get the specific reason, from our guides.
-
Search Factorio codes by effect
Type "money" or "god mode" and find the code, typos forgiven.
-
Test your controller and button sequences
See every button respond, and check a sequence press by press.
Quick answers