📖 What is an RC File?
An RC file is a Windows resource script. It is a plain text file where a developer lists the parts of a program that are not code, the icon, the menus, the dialogs and the on screen text.
Think of it as a parts list for the look of a program. Some entries name a separate file, an icon here, a bitmap there. Others describe the item in full, a menu laid out line by line. The script gathers all of it in one readable place.
On its own an .rc does nothing. It is a source file, written to be fed to a compiler that turns it into the binary the program actually uses. What follows is what it declares, how it names the icons and how to read one.
⚡ Quick Facts
| Full Name | Windows Resource Script |
| Extension | .rc |
| Developer | Microsoft |
| Category | Resource script, source file |
| Format | Plain text |
| Written by | A developer, by hand or in Visual Studio |
| Compiles to | A binary .res file |
| Declares | Icons, menus, dialogs, strings |
| Related Formats | RES, ICO, EXE, DLL |
📦 What an RC File Declares
Each line in an .rc names a resource and gives it an ID the program can call up. The entries fall into two camps:
Icons, cursors and bitmaps point at a separate file on disk. The script holds the name, not the picture.
Menus, dialogs and string tables are spelled out in the script itself, line by line.
That split matters for anyone after the artwork. The icon is never in the .rc. The script only tells you which file to go and find.
👀 What an RC File Looks Like
Because it is text, you can read an .rc straight off. A short one might look like this:
IDI_APPICON ICON "app.ico" IDB_LOGO BITMAP "logo.bmp" IDR_MAINMENU MENU BEGIN POPUP "File" BEGIN MENUITEM "Exit", ID_EXIT END END
The first two lines name outside files, the .ico and the bitmap. The menu below is written out in place. One glance tells you the program's icon is a file called app.ico, sitting next to the script.
🔧 From Script to Program
The .rc is the first step of a short chain that ends in a working program:
The Resource Compiler reads the script, pulls in every file it names and packs the lot into a binary .res file. The linker then folds that .res into the program. By the end, the icon named in one line of your script is riding inside the finished .exe.
⚖️ RC vs RES
These two are the same job at two stages, the script and its compiled form. If both sit in a folder, this is the difference:
| Feature | RC | RES |
|---|---|---|
| Form | Plain text you can read | Binary you cannot |
| Role | The source script | The compiled output |
| Holds the art | No, it names the files | Yes, the art is inside |
| Written by | A developer | The Resource Compiler |
| Order | Comes first | Built from the .rc |
📂 How to Open an RC File
An .rc is text, so opening it is easy. What you reach for depends on whether you want to read it or work on it:
✅ Just to Read It
- Open the .rc in any text editor, Notepad works fine.
- Scan for the ICON lines to see which icons it names.
- Note the .ico file names it points at.
🧰 Other Routes
- Visual Studio: shows the resources visually and as text.
- A code editor: adds syntax colour for easier reading.
- A resource editor: edits the entries with a front end.
- Not the ICO Converter: a .rc is text, so open the files it names instead.
🖼️ Getting the Icons
Since the .rc holds no artwork, getting an icon means following where the script points:
📤 Two Ways to the Icon
- Read the ICON lines and open the named .ico files directly.
- Or if the project is built, open the compiled .res or the finished .exe.
- Feed any of those to the Univik ICO Converter and export as ICO or PNG.
📚 The Compiled Side
Once the script is built, the icon it named lives in the .res and the program. Reading it out of an EXE or DLL is walked through in full here, and the same tool opens the .res.
✏️ Editing an RC File
Because the script is text, you can change it in any editor, renaming resources, swapping an icon file or adjusting a menu. A caveat comes with that freedom.
🔒 Are RC Files Safe?
An .rc is plain text and runs nothing, so opening one to read it carries no risk. It is a source file, the same kind of thing as any code you might view in an editor.
❓ Frequently Asked Questions
🛠️ Related Tools
ICO Converter
Open the .ico, .res or .exe an .rc names or builds, then save the icons as ICO or PNG.
Get the Icons →What Is a RES File?
The compiled binary this script builds and the file that actually carries the icons.
Read the Guide →📝 Summary: Key Points About RC Files
- RC is a Windows resource script
- A plain text source file
- Written by a developer
- Names icons rather than holding them
- Compiles into a binary .res
- Opens in any text editor
- Holds no artwork itself
- The icon lives in the .ico it names
- An edit needs a rebuild to take effect
- Safe to read, it runs nothing