You can change how individual military units look in Hearts of Iron IV by editing a specific game file and assigning custom icons to each unit

Hearts of Iron IV lets you replace the default unit icons with custom ones, but the process requires you to work directly with the game's files rather than through an in-game menu. Each unit type — infantry, armor, artillery, and so on — has its own icon file that you can swap out. The steps involve locating the right folder, finding the icon you want to use, and renaming it to match what the game expects.

This is different from changing the appearance of entire nations or unit models. You are only changing the small icon that appears on the map when you select a unit. The change affects your save file and will show up the next time you load that game.

Key Takeaways

  • Unit icons are stored in your Hearts of Iron IV installation folder under a specific path that varies by whether you use Steam or own the game outright.
  • Each unit type has its own icon file with a name like "infantry.dds" or "armor.dds" that you can replace with a custom image in the same format.
  • Custom icons must be in DDS format (a compressed image format that games use) and match the exact dimensions of the original icon.
  • You should back up the original icon files before replacing them, so you can restore them if something goes wrong.
  • Changes take effect when you load or start a new game, not while the game is running.

Locating your unit icon files

The path to your icon files depends on where Hearts of Iron IV is installed. If you own the game through Steam, navigate to your Steam folder, then to steamapps, then common, then Hearts of Iron IV. Inside that folder, look for a subfolder called gfx, then interface, then then unitframes. This is where the unit icons live.

If you own the game through another platform or installed it outside Steam, the path is the same relative to wherever you put the game folder. The gfx/interface/unitframes path is consistent across all installations. Inside unitframes, you will see files named after unit types: infantry.dds, armor.dds, artillery.dds, and others. These are the files you will replace.

Before you make any changes, copy the entire unitframes folder to a safe location on your computer. This backup lets you restore the original icons if your custom ones do not work or if you want to go back to the default look.

Finding or creating custom unit icons

Custom icons for Hearts of Iron IV exist in community forums, modding sites, and Discord servers dedicated to the game. Search for "Hearts of Iron IV custom unit icons" or "HOI4 unit icon mod" to find collections that other players have made. Many are free to download and use in your own game.

If you want to create your own icons, you will need an image editor that can save files in DDS format. GIMP (free, open-source) and Photoshop both support DDS if you install the right plugin. Your custom icon should match the dimensions of the original — most unit icons in Hearts of Iron IV are 64 by 64 pixels or 128 by 128 pixels. Check the properties of the original icon file to see its exact size before you start designing.

When you have your custom icon ready, save it as a DDS file with the same name as the original icon you are replacing. For example, if you want to change the infantry icon, save your custom image as "infantry.dds".

Replacing the default icons

Once you have your custom icon file in DDS format with the correct name, navigate back to your gfx/interface/unitframes folder. Locate the original icon file you want to replace — for example, "infantry.dds" — and move it to your backup folder or rename it to something like "infantry_original.dds" so you can find it later if needed.

Now copy your custom icon file into the unitframes folder. Make sure the filename matches exactly what the game expects. If the original file was named "armor.dds", your custom file must also be named "armor.dds" — the game will not recognize it otherwise. Windows may warn you that a file with that name already exists; confirm that you want to replace it.

Do not move or delete the entire unitframes folder, and do not rename any files that are not icon files. The game needs all the other files in that folder to run correctly. Only replace the specific .dds icon files you want to change.

Testing your custom icons in-game

Close Hearts of Iron IV completely if it is running. The game loads icon files when it starts, so it will not pick up your changes while it is open. Once you have closed the game, launch it again and load a save file or start a new game.

When you select a unit on the map, look at the unit card that appears — this is where you will see your custom icon. If the icon appears correctly, the replacement worked. If you see an error message, a broken image, or the original icon still appears, check that your DDS file has the correct name and is in the right folder.

If something went wrong, close the game again and restore the original icon file from your backup. Rename it back to the original filename and launch the game again. The default icon will return.

Common mistakes and how to fix them

The most common mistake is saving your custom icon in the wrong image format. Hearts of Iron IV requires DDS files specifically — JPG, PNG, or BMP files will not work, even if you rename them to .dds. If your custom icon does not appear, check that you actually saved it as DDS and not just renamed a different file type.

Another frequent issue is a mismatch between the filename and what the game expects. If you replace "infantry.dds" but name your custom file "Infantry.dds" (with a capital I), the game may not recognize it depending on your operating system. Use lowercase letters and match the original filename exactly.

If your custom icon appears stretched, squashed, or distorted, the dimensions are wrong. Check the original icon's pixel dimensions and make sure your custom icon matches them exactly. An icon that is 64 by 64 pixels will look wrong if you try to use a 128 by 128 pixel image in its place.

Reverting to default icons

If you want to go back to the original icons at any point, navigate to your gfx/interface/unitframes folder and delete the custom icon files you added. Replace them with the originals from your backup folder, or simply rename the "_original" versions back to their standard names.

If you no longer have a backup and want to restore the defaults, you can verify the game files through Steam. Right-click Hearts of Iron IV in your Steam library, select Properties, go to the Local Files tab, and click "Verify integrity of game files". Steam will re-download any missing or corrupted files, including the original icons.

Frequently Asked Questions

Will changing unit icons affect my save file or cause crashes?

No. Custom icons are purely visual and do not change any game data. Your save file will work fine with custom icons, and the game will not crash because of them. If an icon file is corrupted or in the wrong format, the game may show an error or use a placeholder, but it will not crash.

Can I change icons for specific nations only, not all units?

The method described here changes icons globally for all nations. If you want nation-specific icons, you would need to use a mod or edit the game's mod files directly, which is more complex. Check the Hearts of Iron IV modding community for nation-specific icon mods that other players have already created.

What if I want to change icons for divisions or corps, not just unit types?

The unitframes folder contains icons for unit types like infantry and armor. Division and corps icons are stored in a different location and use a different system. Search for "Hearts of Iron IV division icon mod" to find resources for changing those instead.

Do I need to restart my computer after changing icons?

No. You only need to close Hearts of Iron IV and relaunch it. The game will load the new icon files when it starts up.

Can I use icons from other games or mods?

Yes, as long as they are in DDS format and match the correct dimensions. Many modding communities share icon packs that work across different games. Always check the license or permissions before using someone else's work, and give credit if you share your custom setup with others.