.RDA

RDA File

R Data File
Ask a question
QUICK ANSWER

An RDA file is an R Data File produced by R's save() function. It stores one or more R objects - data frames, models, vectors - in a binary format. Open it in R with load("file.rda") or in RStudio via the Environment pane. Excel cannot open RDA files directly.

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

On this page

19k+ extensions indexed
Last reviewed Aug 28, 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 RDA file format?

An .rda file (also saved as .RData) is a binary serialization file produced by the R statistical computing environment using the save() function. It stores one or more named R objects - vectors, data frames, lists, statistical models, or entire workspaces - in R's native XDR (External Data Representation) binary format, which ensures cross-platform compatibility between Windows, Linux, and macOS.

Loading an .rda file with load() restores all saved objects directly into the current R environment under their original names. This differs from .rds files, which hold exactly one object and let the caller assign any name on load via readRDS(). For sharing a single object between scripts, .rds is generally preferred; .rda is more convenient for saving a complete workspace or a named collection of related objects.

By default, R compresses .rda files with gzip, though bzip2 and xz are also supported via the compress= argument to save(). The file header encodes the serialization format version: version 2 (R 1.4.0, December 2001) is the most widely compatible; version 3 (R 3.5.0, April 2018) adds support for long vectors and ALTREP objects but requires R 3.5.0 or later to read. R automatically offers to save the workspace as .RData on quitting.

Security & safety

RISK: MEDIUM

RDA files can contain R code via serialized function/closure objects and environments. Loading an untrusted .rda file could execute code through serialized promise objects or active bindings. load() from unknown sources carries the same risk as running arbitrary R code. Only load .rda files from trusted sources.

Format details

in a nutshell
FULL NAMER Data Fileaka RData file, R workspace file
DEVELOPERThe R Project for Statistical Computingsince 2001 (R serialization format version 2, introduced in R 1.4.0, December 2001)
CATEGORYData Files
MIME TYPEapplication/octet-stream
TYPEBinary serialized R objects
This extension is also used by…
  • Oracle Storage Area file - Oracle uses .rda extension for some internal storage area descriptor files - entirely unrelated to R; extremely rare in practice.
MAGIC BYTES · FILE SIGNATURE
OFFSET
00010203
HEX
5244580A
ASCII
RDX·
Binary XDR format starts with 'RDX\n' (version 2) or 'RDX3\n' for version 3. ASCII format uses 'RDA\n'; XDR format uses 'RDX\n'. The hex shown is for the most common binary XDR variant.

Programs that open RDA files

Windows2 apps
RStudio (Posit) Open-source In Environment pane click 'Import Dataset' or run load('file.rda') in the Console. Objects appear in the Environment pane.
R (base) Open-source Run: load('path/to/file.rda') - objects are loaded into the current environment by name.
macOS2 apps
RStudio (Posit) Open-source Same as Windows: load() in Console or use Import Dataset in Environment pane.
R (base) Open-source load('file.rda') in R console or R.app.
Linux2 apps
RStudio (Posit) Open-source load('file.rda') in Console.
R (base) Open-source load('file.rda') in R terminal.

Technical details

deep spec
File typeBinary serialized R objects (one or more named objects per file)
MIME typeapplication/octet-stream
Magic bytes52 44 58 0A ("RDX\n") for binary XDR format; "RDX3\n" header for serialization version 3
EncodingXDR (External Data Representation) - big-endian, cross-platform binary standard
Byte orderBig-endian (mandated by XDR specification)
Compressiongzip by default; bzip2 and xz also supported via compress= argument to save()
Typical size1 KB - several GB (depends entirely on the objects saved)
Objects per fileMultiple named objects (unlike .rds which holds exactly one object per file)
Load behaviorload() restores all objects to the current R environment under their original names - can silently overwrite existing objects
Serialization versionv2 (R ≥ 1.4.0, December 2001); v3 (R ≥ 3.5.0, April 2018); version encoded in file header
Equivalent extension.RData - identical binary format, different naming convention; R saves workspace as .RData on quit
OS supportWindows, Linux, macOS (fully cross-platform via XDR encoding)
Related format.rds - single-object serialization via saveRDS()/readRDS(); preferred when sharing individual R objects
Released2001 (R serialization format version 2, introduced in R 1.4.0, December 2001)
Latest versionSerialization format version 3 (R 3.5.0, April 2018) - adds support for long vectors and ALTREP objects
Specificationcran.r-project.org

RDA conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with RDA 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 RDA files.

Frequently asked questions

How do I open an .rda file?
In R: load('file.rda'). In RStudio: use the Environment pane > Import Dataset, or type load() in the console. The objects will appear in your environment under their original names.
What is the difference between .rda and .RData?
Nothing - they are the same format. .RData is the extension R uses for auto-saved workspaces; .rda is the conventional extension for explicitly saved R data files.
What is the difference between .rda and .rds?
.rda holds multiple named objects (save(obj1, obj2)); .rds holds exactly one object (saveRDS(obj)). With .rds you name the object when loading: x <- readRDS('file.rds'). Modern R practice prefers .rds for sharing single objects.
Can I open an .rda file in Python?
Yes, using the pyreadr library: import pyreadr; result = pyreadr.read_r('file.rda'). Or via rpy2 which calls R directly.
Can I open an .rda file in Excel?
Not directly. Load in R and export to CSV or XLSX first using write.csv() or writexl.
R loaded my .RData on startup and broke my session - how do I stop this?
Disable auto-save: in RStudio go to Tools > Global Options > General and uncheck 'Restore .RData into workspace at startup' and set 'Save workspace to .RData on exit' to Never. Or add usethis::use_blank_slate() to your .Rprofile.

References

1Library of Congress - R Data Format Familywww.loc.gov
2R Internals - Serialization Formatscran.r-project.org

Keep exploring

across the database

Top extensions this week

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