In short: by default WinRAR stores the relative folder structure of what you add, and recreates it on extraction. To flatten everything into one folder, use the extraction option “Do not extract paths”; to keep folders, leave “Extract relative paths” selected.
HomeAdvancedWinRAR folder structure
WinRAR archive icon

WinRAR Folder Structure

Control how paths are stored and rebuilt

How an archive stores folders decides how cleanly it unpacks later. Power users care about this when sharing source trees, backing up nested projects, or merging many subfolders into one. WinRAR gives you precise control on both the compression and extraction side.

↓ Jump to the steps  ·  All Advanced guides →

Good to know: WinRAR records the path of each file relative to the folder you added, not the full drive path, so archives stay portable. The options below let you keep, rebuild or flatten that structure exactly as you want.

How WinRAR stores paths

How to control folder structure step by step

1

Keep the full structure when archiving

Add files by selecting the top folder (not the files inside it) → right-click → Add to archive. WinRAR stores the folder and all subfolders, so the tree is preserved.
2

Add files but drop their folders

If you select files from several subfolders and archive them, use the Files tab in the Add window; clearing path information stores just the file names, so everything lands in one level when extracted.
3

Rebuild the structure on extraction

In the Extract window, keep “Extract relative paths” selected (the default). WinRAR recreates the original subfolders under your destination folder.
4

Flatten everything into one folder

In the Extract window choose “Do not extract paths (extract to current folder)”. Every file is placed directly in the destination with no subfolders — handy for merging.
5

Extract a single subfolder only

Open the archive, double-click into the subfolder you want, select its files, and click Extract to. Only that branch is unpacked, preserving its internal structure.
6

Watch for duplicate names when flattening

Flattening can collide files that share a name in different folders. WinRAR will prompt to rename or skip — keep paths if the names are not unique.

Related Advanced guides

WinRAR automation & pluginsScript path handling with rar.exe switches.
WinRAR markdown guideBundle a README inside the structure.
Back up your WinRAR vaultPreserve structure inside an encrypted archive.
← Back to AdvancedThe full WinRAR power-user hub.

Frequently asked questions

Does WinRAR keep folder structure in an archive?
Yes. By default it stores each file’s path relative to the base folder you added and recreates that structure when you extract, so nested folders are preserved.
How do I extract files without their folders?
In the Extract window choose “Do not extract paths (extract to current folder)”. Every file is then placed directly in the destination with no subfolders.
How do I extract just one subfolder?
Open the archive, navigate into the subfolder, select its contents and click Extract to. Only that branch is unpacked, keeping its internal structure.
Are full drive paths stored in the archive?
No. WinRAR stores paths relative to the folder you added, not absolute drive paths, which keeps archives portable across computers.

Get WinRAR to manage your archives

Official installer · free 40-day trial · no registration · Windows 10 & 11

⬇ Download WinRAR 64-bit — Free