A CTG file is a catalog or index file that stores information about other files on your computer
A CTG file is a catalog file — a reference document that your computer or a program uses to keep track of where things are and what they contain. Think of it like a library card catalog: instead of searching every shelf, you look up what you want in the catalog and it tells you exactly where to find it. CTG files do the same thing for your computer or for specific programs.
The most common CTG file you'll run into is created by Windows itself. When you use Windows Search or when your computer indexes files for quick searching, it creates and maintains CTG files as part of that index. These files live in hidden system folders and you rarely need to interact with them directly. Other programs — particularly older software, graphics programs, and media players — also create their own CTG files to catalog their content.
You don't need to open or edit CTG files yourself. They're working files that programs read automatically. If you see one in a folder, it's there because a program put it there to do its job more efficiently.
Key Takeaways
- CTG files are catalog or index files that programs use to track and organize other files, not documents you open yourself.
- Windows creates CTG files as part of its search indexing system, storing them in hidden system folders.
- If a CTG file becomes corrupted or takes up unexpected space, you can safely delete it and the program will recreate it.
- Different programs use CTG files differently — a graphics editor's CTG file works differently than Windows Search's CTG file.
Where CTG files come from and why programs create them
Programs create CTG files to save time and computing power. Without a catalog, every time you searched for something or opened a folder, the program would have to scan through every single file from scratch. That's slow. With a CTG file, the program can look at the catalog instead — which is much faster because it's already organized and indexed.
Windows Search uses CTG files to index your hard drive so that when you type something into the search box, results come back in seconds instead of minutes. Adobe Lightroom creates CTG files to catalog your photo library. Some media players create them to index music or video files. In each case, the program is saying: "I've looked at all these files once, organized the information about them, and saved that organization in a CTG file so I don't have to do it again."
These files are usually hidden from view because they're meant to be invisible to you — they're infrastructure, not content. On Windows, you can see them if you turn on the option to show hidden files in File Explorer, but most people never need to.
When you might see a CTG file and what to do about it
You're most likely to notice a CTG file if you're looking inside a program's settings folder, if you're troubleshooting a search problem, or if a program isn't finding files it should be finding. For example, if Windows Search suddenly stops working properly, a corrupted CTG file might be the cause.
If a CTG file is causing problems — your search is slow, a program isn't finding files, or you're running low on disk space — you can delete it. The program will simply recreate it the next time it runs. Deleting a CTG file won't delete any of your actual files; it only deletes the catalog. It's like tearing up a library card catalog — the books are still there, but the library will have to make a new catalog.
On Windows, if you want to rebuild your search index from scratch, you can delete the index files (which include CTG files) through Settings. Go to Settings > Search > Searching Windows, and look for the option to rebuild the index. Windows will delete the old index and create a new one, which can sometimes fix search problems.
CTG files and disk space
CTG files are usually small — typically a few kilobytes to a few megabytes. They're not meant to take up much room because they're just references and pointers, not copies of your actual files. If you notice a CTG file that's unusually large, it might be worth checking what program created it and whether that program is working correctly.
In rare cases, if a program crashes while writing to a CTG file, the file can become corrupted and grow larger than it should. If you suspect this is happening, you can safely delete the file. The program will create a fresh one.
CTG files and security
CTG files themselves are not a security risk. They don't execute code or run programs — they're just data files that store information about other files. Malware doesn't hide in CTG files because there's nothing in them to hide in.
However, if a malicious program is installed on your computer, it might create its own CTG file as part of its operation. The CTG file itself isn't dangerous, but the program that created it might be. If you're concerned about malware, the issue isn't the CTG file — it's the program that created it. Running a reputable antivirus scan is the right response, not worrying about individual CTG files.
Different programs, different CTG files
Not all CTG files work the same way. A CTG file created by Windows Search is completely different from a CTG file created by Adobe Lightroom or by an older graphics program. Each program uses the CTG format (or something similar) for its own purposes, but the contents and structure vary.
This is why you can't just move a CTG file from one program to another or expect it to work if you copy it to a different computer. Each CTG file is specific to the program that created it and the files it's cataloging. If you move your photo library to a new computer, Lightroom will create a new CTG file for it — it won't use the old one.
Frequently Asked Questions
Can I delete a CTG file without breaking anything?
Yes. Deleting a CTG file won't delete your actual files or break the program that created it. The program will simply recreate the CTG file the next time it runs. It's safe to delete, though the program may take a moment to rebuild its catalog.
Why is my CTG file so large?
If a CTG file is unusually large, the program that created it may be indexing a lot of files, or the file may be corrupted. Try deleting it and letting the program recreate it. If it grows to the same large size again, the program may have a problem worth investigating.
Do I need to back up my CTG files?
No. CTG files are temporary working files that programs recreate automatically. There's no reason to back them up — if something goes wrong, the program will just make a new one.
Is a CTG file the same as a cache file?
They're similar but not identical. Both are working files that programs create to speed things up. A cache stores copies of data; a CTG file stores an index or catalog of where things are. Both can be safely deleted.