.RDATA

RDATA File

R Workspace / Saved Objects File
Ask a question
QUICK ANSWER

An RDATA file is a binary snapshot of one or more R objects - a saved R workspace created by R's save() function. Open it in R or RStudio with load("file.RData"), which restores all objects into your session. It is not readable in a text editor. There is no standalone converter; to get data out, load it in R and export to CSV or Excel from there.

Developer: The R Project for Statistical Computing (R Core Team) Category: Data Files Open standard MIME: application/octet-stream
OPENS ON Windows macOS Linux Web
Related: .PKPASS · .DAT · .JSON · .RIS

On this page

19k+ extensions indexed
Last reviewed Aug 26, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the RDATA file format?

.rdata (also written .RData) is the native workspace format used by the R statistical computing environment to save and restore multiple in-memory objects at once. Calling save() or save.image() in R serializes any number of named objects - vectors, data frames, lists, functions, and environments - into a single binary file, which load() then restores directly into the calling environment under their original names.

The file is built on R's internal serialization protocol. Uncompressed files begin with the ASCII header RDX3 (or the older RDX2) followed by an XDR-encoded binary payload. In practice R compresses the payload with gzip by default, so most .rdata files start with the gzip magic bytes 1F 8B rather than the raw serialization header. Bzip2 and xz compression are also supported.

Two serialization format versions are in common use:

  • Version 2 - default before R 3.5.0; broadly compatible with older R installations.
  • Version 3 - default since R 3.5.0; adds native character-encoding metadata and cannot be read by earlier R releases.

The closely related .rds format differs in one key respect: it stores a single R object rather than a named collection, and is loaded with readRDS() so the caller can assign it any name. For sharing data portably outside R, text-based formats such as CSV or JSON are often preferred.

Security & safety

RISK: MEDIUM

.RData files are data, but loading one is not entirely passive: an .RData can contain R objects such as functions, formulas or promises, and restoring a malicious workspace can in some cases trigger code execution (and load() silently overwrites objects of the same name in your environment). Only load .RData files from sources you trust, the same way you'd treat any executable-bearing file. Files are not encrypted, so don't assume privacy. Otherwise there's no malware risk in ordinary datasets.

Format details

in a nutshell
FULL NAMER Workspace / Saved Objects Fileaka RData file, R workspace
DEVELOPERThe R Project for Statistical Computing (R Core Team)since 1990s (with R; serialization format predates R 1.0, 2000)
CATEGORYData Files
MIME TYPEapplication/octet-stream
TYPEBinary serialized R objects (R's native save format)
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
0001020304
HEX
524458330A
ASCII
RDX3·
A typical .RData saved by save() begins with the ASCII line "RDX3\n" (older files "RDX2\n"), then an XDR-encoded serialized payload. If saved gzip-compressed (the default), the file instead starts with the gzip magic 1F 8B; bzip2 starts "BZh", xz starts "FD 37 7A 58 5A". Uncompressed payloads carry the serialization marker "X\n" (58 0A). So there is no single fixed offset-0 signature across all .RData files.

Programs that open RDATA files

Windows2 apps
R (base, with RGui) Open-source In R run load('path/to/file.RData') to restore the objects; ls() to see what loaded.
RStudio (Posit) Freemium Open RStudio and double-click the .RData in the Files pane, or run load('file.RData'); inspect objects in the Environment pane.
macOS2 apps
R (base) Open-source Run load('file.RData') in R.app or the terminal R session.
RStudio (Posit) Freemium Open in RStudio and load() the file; objects appear in the Environment pane.
Linux2 apps
R (base) Open-source From the R console run load('file.RData') to restore the saved objects.
RStudio (Posit) Freemium Open the .RData via the Files pane or load() it in the console.
Web1 app
Posit Cloud Freemium Upload the .RData to a Posit Cloud project and load() it in the browser-based RStudio - no local install.

Technical details

deep spec
Format typeBinary serialized R objects; an ASCII serialization mode also exists
Byte orderBig-endian (XDR network byte order)
Default compressiongzip; bzip2 and xz are optional alternatives; uncompressed mode is available
Magic bytes (uncompressed v3)52 44 58 33 0A (ASCII "RDX3\n"); v2 files use 52 44 58 32 0A ("RDX2\n")
Magic bytes (compressed)1F 8B when gzip-compressed (the default); 42 5A 68 for bzip2; FD 37 7A 58 5A for xz
Object multiplicityStores multiple named R objects per file (vectors, data frames, lists, functions, environments)
Load command`load()` - restores all saved objects into the calling environment under their original names
Save commands`save()` for selected objects; `save.image()` to capture the entire current workspace
Serialization versionsv2 (pre-R 3.5.0) and v3 (R ≥ 3.5.0); v3 embeds native character-encoding metadata; v3 files require R 3.5.0 or later
MIME typeapplication/octet-stream (generic); unofficial: application/x-r-data
EncryptionNone built-in; sensitive workspaces must be protected at the OS or container level
Integrity checkingNo intrinsic checksum; the compression wrapper may detect bitrot, but there is no per-object hash
Platform supportCross-platform: Windows, macOS, Linux - any system running R
Typical file sizeA few KB to several GB, depending on the size and number of objects saved
Sibling single-object format`.rds` stores exactly one R object; loaded with `readRDS()` and freely renamed on assignment
Package lazy-load database`.rdx` (index) and `.rdb` (data) files together form the lazy-load database used inside R packages, sharing the same serialization layer
Released1990s (with R; serialization format predates R 1.0, 2000)
Latest versionR serialization format version 3 (default since R 3.5.0, 2018)
Open standardYes · royalty-free
Specificationcran.r-project.org

RDATA conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with RDATA files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about RDATA files.

Frequently asked questions

How do I open an RData file?
Open it in R or RStudio with load('path/to/file.RData'). That restores all saved objects into your session under their original names - run ls() to see them. RData is binary, so a text editor won't show readable content.
What's the difference between .RData and .rds?
.RData (via save/load) stores multiple named objects and drops them back under those names. .rds (via saveRDS/readRDS) stores a single object that you assign to any name on load. For one object, .rds is usually cleaner.
How do I convert RData to CSV?
There's no one-click converter and an .RData can hold several objects. In R: load('file.RData'), then write.csv(yourDataFrame, 'out.csv') for each data frame you want to export.
Can I open an RData file without R?
Practically, no - it's R's native binary format. Use R/RStudio (or Posit Cloud in a browser). Python's pyreadr can read many .RData files, but R is the reliable route, then export to CSV/Excel for other tools.
Why won't my RData file load in R?
Common cause: it was saved in serialization format version 3 (default since R 3.5.0, 2018) and you're running an older R. Update R. Also confirm the file isn't truncated/corrupted from a bad transfer.
Is it safe to open an RData file from someone else?
Mostly, but not unconditionally: .RData can contain functions/code and load() can overwrite your objects, so only open files from sources you trust - treat unknown .RData like any file that could run code.

References

1R Internals - Serialization Formatscran.r-project.org
2R Documentation - save() / load()stat.ethz.ch

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.MDMarkdown Document
4.BINCD/DVD Disc Image (BIN/CUE)
5.NOMEDIAAndroid No-Media Marker File
6.PARTPartial Download File
7.RPMSGRestricted Permission Message
8.EXEWindows Executable (Portable Executable)
9.AVIFAV1 Image File Format (AVIF)
10.DBSQLite Database File

Related extensions

.PKPASSApple Wallet Pass (formerly Passbook)
.DATProgram Data File (generic)
.JSONJavaScript Object Notation file
.RISResearch Information Systems citation file
.OFXOpen Financial Exchange
.CSVComma-Separated Values

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z