.ARFF

ARFF File

Attribute-Relation File Format
Ask a question
QUICK ANSWER

An ARFF file is a plain-text dataset format used by the Weka machine learning toolkit. Open it in Weka Explorer, any text editor, or load it in Python with scipy.io.arff. To convert to CSV, use Weka's Preprocess tab or strip the header lines manually - the data section is already comma-separated.

Developer: University of Waikato (Machine Learning Group) Category: Data Files Open standard MIME: text/plain
OPENS ON Windows macOS Linux
Related: .PKPASS · .DAT · .JSON · .RIS

On this page

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

An .arff file is the native dataset format for the Weka machine learning workbench, developed by the Machine Learning Group at the University of Waikato. It stores labeled datasets as plain text with a structured schema header, making it a common interchange format in academic machine learning research.

An .arff file has two sections. The header begins with @relation (naming the dataset), followed by @attribute declarations defining each feature's name and type. Supported types include NUMERIC, INTEGER, REAL, STRING, DATE (ISO 8601), and nominal (an explicit value list in curly braces {}). The @data section follows with comma-separated instances, one per line; missing values are marked ?. Lines beginning with % are comments.

A sparse variant uses {index value} pairs for high-dimensional datasets where most values are zero - common in text classification. The @relational attribute type supports nested sub-datasets for multi-instance learning.

Despite its age, .arff is widely supported beyond Weka: Python reads it via scipy.io.arff.loadarff(), R handles it with the foreign package, and many ML toolkits accept it as an interchange format. For richer metadata and per-instance weights, Weka's XML-based .xrff is the successor, though .arff and .csv remain more common in practice.

Security & safety

RISK: LOW

Plain text data file; no executable content. Safe to open in any text editor. Weka processes it in a JVM sandbox.

Format details

in a nutshell
FULL NAMEAttribute-Relation File Formataka ARFF file, Weka dataset file
DEVELOPERUniversity of Waikato (Machine Learning Group)since 1993 (Weka project, University of Waikato)
CATEGORYData Files
MIME TYPEtext/plain
TYPEplain text, structured dataset format
STANDARDOpen · royalty-free

Programs that open ARFF files

Windows3 apps
Weka Open-source Launch Weka Explorer > Open file > select .arff. Visualize attributes and run classifiers directly.
Notepad Open-source Open as plain text to inspect or edit the header/data manually.
Python (scipy / arff package) Open-source from scipy.io.arff import loadarff; data, meta = loadarff('file.arff')
macOS1 app
Weka Open-source Launch Weka Explorer > Open file > select .arff.
Linux1 app
Weka Open-source java -jar weka.jar then Explorer > Open file.

Technical details

deep spec
EncodingPlain text (ASCII historically; UTF-8 in modern Weka)
File structureHeader (@relation + @attribute declarations) followed by @data section
Attribute typesNUMERIC, INTEGER, REAL, STRING, DATE, NOMINAL (curly-brace value list), RELATIONAL
Missing value token? represents any missing value in the @data section
Comment syntaxLines beginning with % are comments; allowed anywhere in the file
Sparse ARFF variant{index value} pairs in @data section for high-dimensional sparse datasets
Date attribute formatISO 8601 date/time strings within DATE attribute declarations
Nested data support@relational attribute type encodes sub-datasets for multi-instance learning
MIME typetext/plain (no dedicated MIME type registered)
Typical file size1 KB - 500 MB (benchmark datasets commonly 1-50 MB)
Python supportscipy.io.arff.loadarff() in SciPy; standalone arff package on PyPI
R supportread.arff() in the foreign package
XML-based successorXRFF format adds instance weights and richer dataset metadata
PlatformCross-platform: Windows, Linux, macOS
Released1993 (Weka project, University of Waikato)
Latest versionARFF with relational attributes (Weka 3.x, extended ~2005)
Open standardYes · royalty-free
Specificationwaikato.github.io

ARFF conversions

Community Q&A

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

Frequently asked questions

How do I open an ARFF file?
Use Weka Explorer (native tool) or open in any text editor. Python users: scipy.io.arff.loadarff() or the arff package.
How do I convert ARFF to CSV?
In Weka Explorer: open the ARFF, go to Preprocess tab, click Save then choose CSV format. Alternatively strip the @relation/@attribute header lines and keep the @data section - it's already comma-separated.
Can I open ARFF in Excel?
Not directly. Convert to CSV first (via Weka or by stripping the header), then open the CSV in Excel.
What is the difference between ARFF and CSV?
ARFF includes a header that names attributes and declares their types (numeric, nominal with value list, date). CSV has no such metadata. ARFF also supports missing values with '?' and sparse format.
Is ARFF still used?
Yes, primarily in academia and Weka-based workflows. Most modern ML pipelines use CSV or Parquet, but ARFF remains the standard format for many benchmark datasets.

References

1Weka Wiki - ARFF format specificationwaikato.github.io
2Weka homepage - University of Waikatowww.cs.waikato.ac.nz

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.EXEWindows Executable (Portable Executable)
5.TAGDataFlex Query Tag Name File
6.ICSiCalendar data file
7.JSONJavaScript Object Notation file
8.M4AMPEG-4 Audio File
9.JPGJPEG Image
10.DATProgram Data File (generic)

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