Skip to content

Guide

How to open and extract RPF files in GTA V, RDR2 and GTA IV

Choose your game and set it up once, then browse its archives like folders, search every game file and extract what you need, as stored or converted.

Updated · 5 min read

RPFView – vehicles.rpf
RPFView main window browsing vehicles.rpf inside x64e.rpf, with the folder tree, the file list and adder.ytd previewed in the texture viewerRPFView main window browsing vehicles.rpf inside x64e.rpf, with the folder tree, the file list and adder.ytd previewed in the texture viewer

Before you start

  • Windows 10 or 11 (64-bit) and one of these games for PC, from Steam, Epic Games or the Rockstar Games Launcher: GTA V Legacy, or as betas GTA V Enhanced (more), Red Dead Redemption 2 and GTA IV with its episodes.
  • RPFView, free from the download page.

Opening, browsing and extracting never change your game files. Only editing and saving an archive does, and Red Dead Redemption 2's archives can't be edited at all.

1. Choose your game and set it up

The game's archives are locked (encrypted), and RPFView doesn't include any Rockstar keys: it gets them from your own copy of the game. You do this once per game.

  1. On the first start, RPFView asks Which game do you want to open? Click GTA V Legacy, GTA V Enhanced, Red Dead Redemption 2 or GTA IV. File → Switch game… shows the same choice later.
  2. The Welcome to RPFView dialog opens. Under 1. Game folder, check the folder RPFView found. It should say, for example, GTA V Legacy installation found. or Red Dead Redemption 2 installation found. If it's empty, click Detect, or Browse… and pick the folder that contains the game's program (listed under Common problems).
  3. Under 2. Unlock the archives, click the button. For GTA V it's Download and set up; for Red Dead Redemption 2 and GTA IV it's Set up.
  4. When the card says Ready, click Done.
  • GTA V (both editions): RPFView downloads magic.dat, a small public file (about 150 KB) from CodeWalker, and unlocks the archives with it and your own game. Both editions use the same keys. If you have a local copy of magic.dat, open I already have the files (advanced) and use Browse for magic.dat… instead; then nothing is downloaded.
  • Red Dead Redemption 2: RPFView unlocks the archives with your game's RDR2.exe. Nothing is downloaded, and the game doesn't need to run. Only if your version of the game isn't supported yet does RPFView ask you to start the game once (see below).
  • GTA IV: RPFView reads the key from your game's GTAIV.exe. Nothing is downloaded, and the game doesn't need to run.

Later starts need nothing. You can come back to this dialog any time with Tools → Game folder & keys… or by clicking the keys status at the bottom of the window.

2. Browse the archives

The folder tree on the left starts at your game folder: Grand Theft Auto V, Red Dead Redemption 2 or Grand Theft Auto IV. Archives open like folders, including archives inside archives.

  1. Double-click an archive to open it, then keep going. In GTA V, for example, x64e.rpf → levels → gta5 → vehicles.rpf. In Red Dead Redemption 2 most textures are in textures_0.rpf; in GTA IV the models are in .img archives such as pc\models\cdimages\vehicles.img.
  2. Or jump straight there: press Ctrl+L, type a path such as x64e.rpf\levels\gta5\vehicles.rpf and press Enter. Paths relative to the game folder work.
  3. Go back with Alt+Left, and one level up with Backspace.

Click a file to see it in the preview pane on the right: textures, 3D models and metadata as XML. Ctrl+P shows or hides the pane.

4. Extract files

Select one or more files or folders, then pick how to export them:

  • Export… (Ctrl+E) saves the files exactly as they are stored in the archive. One file asks for a file name; several files or a folder ask for a folder, and folders are exported with everything in them.
  • Export as… (Ctrl+Shift+E) converts what it can: textures (.ytd, in GTA IV .wtd) to PNG or DDS images, 3D models (.ydr, .ydd, .yft, in GTA IV .wdr, .wdd, .wft) to GLB or OBJ for Blender, and game data (.ymt, .ymap, .ytyp, .meta …) to XML. Everything else is exported as stored.
  • Or drag the selection from RPFView into Windows Explorer, which exports it as stored (up to 2 GB at a time).

The Export as dialog names the GTA V file types, but its options apply to the textures and models of every game.

If files with the same names are already in the destination, RPFView asks whether to Replace them or Skip existing.

Open an archive from a mod

To look inside an archive outside the game folder, such as the dlc.rpf of a downloaded mod, choose File → Open archive… (Ctrl+O). It appears as its own entry in the folder tree and under File → Recent archives. The dialog shows .rpf files; for a GTA IV .img archive, switch it to All files.

Common problems

RPFView doesn't find my game, or says the folder is wrong

Make sure the folder belongs to the game you chose. It must contain the game's program: GTA5.exe for GTA V Legacy, GTA5_Enhanced.exe for GTA V Enhanced, RDR2.exe for Red Dead Redemption 2 and GTAIV.exe for GTA IV. On Steam, GTA IV's program is in the GTAIV folder inside Grand Theft Auto IV.

If you chose the wrong game, change it with File → Switch game…. Since March 2025 Epic Games lists GTA V Legacy and Enhanced separately.

Red Dead Redemption 2 asks me to start the game

Your version of the game isn't supported yet, so RPFView reads the keys from the running game once. Start the game, wait for its title screen and click the button again. RPFView doesn't change the game, and you can close it afterwards. Don't play Red Dead Online meanwhile.

Key setup failed

The dialog names the step that failed and what to do. If it still fails, click Copy details and send us the report. It never contains keys.

An archive shows a banner instead of its files

Encrypted archives need the keys. Click Set up keys… in the banner and follow step 1.

Can I edit the archives?

GTA V's and GTA IV's, yes: see how to replace textures for GTA V. Red Dead Redemption 2's archives can only be opened and exported, not edited.

More guides

All guidesAll featuresFAQ