sodcalculator

10 Tech How-To

How to Change USB Drive Icon on Windows

Guide 10-58914 · Updated · Step by step

This guide shows you how to replace the default generic USB drive icon with a custom one on Windows. You’ll create a small configuration file and place it on the drive; no extra software is needed. The icon will appear on your own PC and on other Windows computers when the drive is plugged in.

What You’ll Need

  • A USB flash drive (or any removable drive) formatted as FAT32, exFAT, or NTFS.
  • An icon file in .ico format (32×32 or 48×48 pixels recommended for best quality).
  • Windows Notepad (or any text editor) to create the configuration file.

Step-by-Step

  1. Prepare your icon file. Find or create a .ico file. If you have a PNG or JPG, you can convert it to .ico using a free online converter or an image editor. Name it something simple like usb.ico and place it in the root folder of your USB drive.
  2. Create the autorun.inf file. Open Notepad. Type exactly these two lines:
    [autorun]
    ICON=usb.ico

    If your icon file has a different name, replace usb.ico with that name. If you placed the icon in a subfolder, include the path, e.g., ICON=folder\usb.ico.

  3. Save the file correctly. In Notepad, click File → Save As. In the “Save as type” dropdown, select “All Files (*.*)”. Name the file autorun.inf (make sure it does not become autorun.inf.txt). Save it to the root of your USB drive.
  4. Eject and reconnect the drive. Safely eject the USB drive from your computer, then plug it back in. Windows will read the autorun.inf file and apply the custom icon.
  5. Refresh if needed. If the icon doesn’t change immediately, open File Explorer, press F5 to refresh, or restart Windows Explorer via Task Manager.
  6. Test on another computer (optional). Plug the drive into another Windows PC. The icon should appear there as well, as long as the drive is recognized and autorun is not disabled.

Common Mistakes

  • Wrong file name: The file must be exactly autorun.inf, not autorun.inf.txt or autorun.inf.txt. Windows hides known file extensions by default, so you may accidentally create a .txt file.
  • Icon path error: The path in the ICON line must match the actual location of the .ico file. If the icon is in a subfolder, use a backslash (\), not a forward slash.
  • Using a non-ICO file: Windows expects a .ico file. Using a .png or .jpg will not work; the icon will remain default.
  • Icon too large: Very large .ico files (e.g., 256×256) may not display correctly on older Windows versions. Stick to 32×32 or 48×48 for compatibility.
  • Placing files in the wrong location: Both autorun.inf and the icon file must be in the root directory (top level) of the USB drive, not inside a folder.

Tips

  • Use a transparent icon: Icons with transparency look better on different backgrounds. Make sure your .ico file supports transparency.
  • Test on multiple PCs: Some Windows systems have autorun disabled for security reasons, which may prevent the icon from showing. This is rare for icons, but possible.
  • Keep a backup: If you lose the .ico file, the drive will revert to the default icon. Store the icon file somewhere safe.
  • Use a tool for creating .ico files: If you don’t have an icon editor, online converters can turn PNG or JPG into .ico. Choose a size of 32×32 or 48×48 for best results.
  • Name the icon file simply: Avoid spaces or special characters in the icon file name; use underscores if needed.

Troubleshooting

Icon not changing after reconnecting:

  • Check that the autorun.inf file is saved as plain text, not with a .txt extension. Open File Explorer, go to View → File name extensions, and verify the file appears as autorun.inf.
  • Ensure the ICON line uses the exact file name and path. A typo in the file name or path will cause Windows to ignore it.
  • Try refreshing: Press F5 in File Explorer, or restart Windows Explorer via Task Manager (right-click the taskbar → Task Manager → Windows Explorer → Restart).
  • Check if the drive is formatted with a file system that supports autorun. FAT32, exFAT, and NTFS all work. If the drive is formatted as exFAT, it should still work.
  • Some security software or group policies may block autorun features. Temporarily disable any USB protection software to test, but re-enable it afterward.

Icon appears but is blurry or wrong:

  • Use a .ico file that contains multiple resolutions (e.g., 16×16, 32×32, 48×48). Many icon editors can generate these.
  • Make sure the icon is not a renamed .png. Right-click the .ico file → Properties → Details to see the file type.

Autorun.inf is deleted by antivirus:

  • Some antivirus programs flag autorun.inf as a potential threat. Add an exception for your USB drive or use a different drive for testing.

Frequently Asked Questions

Q: Can I use a PNG file instead of ICO?
A: No, Windows specifically requires a .ico file for drive icons. You can convert PNG to ICO using free online tools.

Q: Will the icon show on Mac or Linux computers?
A: No, this method works only on Windows. Mac and Linux use different mechanisms for drive icons.

Q: Does the drive need to be formatted in a specific way?
A: FAT32, exFAT, and NTFS all work. The drive must be readable by Windows; other file systems like ext4 may not work.

Q: Can I have a different icon for each partition on the same USB drive?
A: Yes, each partition can have its own autorun.inf and icon file. Place the files in the root of each partition.

Q: Why does my icon not appear on other computers?
A: It should appear if the other computer runs Windows and has autorun enabled. Some corporate or security-restricted systems may disable autorun, which prevents the icon from loading.

Q: Is this method safe?
A: Yes, it’s a standard Windows feature. However, be aware that some security programs may flag autorun.inf files as a risk, even though this use is harmless.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →