.REF

REF File

Microsoft Train Simulator Reference File
Ask a question
QUICK ANSWER

A REF file is a plain-text index of scenery shapes used by Microsoft Train Simulator (MSTS) and its free open-source successor, Open Rails. Open it in Notepad++ to read or edit it, or use the Open Rails Route Editor to work with it inside the simulator. The file cannot execute code and is safe to open in any text editor.

Developer: Microsoft Corporation Category: Data Files MIME: text/plain
OPENS ON Windows
Related: .PKPASS · .DAT · .JSON · .RIS

On this page

19k+ extensions indexed
Last reviewed Jul 31, 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 REF file format?

A .ref file in the context of Microsoft Train Simulator (MSTS) is a plain-text structured reference file that lists available scenery shapes for use in a train route. It serves as an index for the MSTS Route Editor, populating the object picker with the shapes, collision properties, shadow settings, and alignment types available in a given route library.

The file uses MSTS's token-block text format - a hierarchical structure of named blocks and key-value pairs also found in other MSTS file types. The top-level block is typically named Shape_Definition_File. Each entry records the .S shape filename, collision class, shadow behavior, and a human-readable description. Because it is plain text, it can be read and edited in any text editor.

Microsoft Train Simulator 1.0 was released in July 2001 and received no major updates beyond patches. The .ref format lives on through Open Rails, an open-source successor that reads MSTS .ref files natively and remains actively maintained. Dovetail Games' Train Simulator (formerly RailWorks) uses a different format.

Note that .ref is a generic extension used by many unrelated applications; only its location within an MSTS or Open Rails route directory identifies it as a train simulator file.

Security & safety

RISK: LOW

Plain-text file, cannot execute. Safe to open in any text editor.

Format details

in a nutshell
FULL NAMEMicrosoft Train Simulator Reference Fileaka MSTS REF file, shape reference file
DEVELOPERMicrosoft Corporationsince 2001 (with Microsoft Train Simulator 1.0)
CATEGORYData Files
MIME TYPEtext/plain
TYPEPlain-text structured reference/index file for scenery shapes in Microsoft Train Simulator
This extension is also used by…
  • Generic Reference / Cross-Reference File - Compilers, linkers, and IDEs use .ref for symbol cross-reference tables; format varies by tool.
  • Refworks/ProCite Reference Management Export - Some reference management tools export .ref citation files in a tagged text format.
  • Various game engine reference files - Multiple game engines use .ref for asset manifests or object-reference lists; unrelated to MSTS.

Programs that open REF files

Windows3 apps
Notepad Built-in Open in Notepad for basic viewing of the plain-text shape reference list.
Open Rails Route Editor Open-source Open Rails (free MSTS successor) reads .ref files natively when editing a route.
Microsoft Train Simulator (Route Editor) Paid MSTS Route Editor reads .ref files to populate the object picker during route building.

Technical details

deep spec
DeveloperMicrosoft Corporation
ApplicationMicrosoft Train Simulator Route Editor; Open Rails (open-source successor)
Format typePlain-text token-block structured file
Top-level blockShape_Definition_File
EncodingText, ASCII (Windows-1252 in MSTS era)
Typical size1 KB - 500 KB
Per-entry fields.S shape filename, shadow properties, collision class, alignment type, description
FunctionPopulates the Route Editor object picker with available scenery shapes
Associated OSWindows
Introduced2001, with Microsoft Train Simulator 1.0 (released July 2001)
Open Rails compatibilityReads MSTS .ref files natively; actively maintained community successor to MSTS
Released2001 (with Microsoft Train Simulator 1.0)

Community Q&A

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

Frequently asked questions

What is a REF file from Microsoft Train Simulator?
A plain-text index listing scenery shapes for an MSTS route, used by the Route Editor and by Open Rails (the free MSTS successor). Open it in any text editor or in the Open Rails Route Editor.
Is Microsoft Train Simulator still supported?
No. Microsoft stopped development after 2002. Open Rails (openrails.org) is the active free successor that still reads all original MSTS file formats, including .ref files.
How do I add objects to an MSTS .ref file?
Edit the plain-text .ref file in a text editor (Notepad++), adding a new Shape entry block with the .S filename, shadow, class, alignment, and description fields, then reload in the Route Editor.

References

1Open Rails - free MSTS-compatible simulationwww.openrails.org
2MSTS / Open Rails wiki - REF file format (community)www.elvastower.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.PARTPartial Download File
4.MDMarkdown Document
5.RPMSGRestricted Permission Message
6.CRDOWNLOADChrome Partial Download File
7.NOMEDIAAndroid No-Media Marker File
8.PRDXSoftMaker Presentations Document
9.PRO6XProPresenter 6 Bundle File
10.SWFSmall Web Format (Shockwave Flash)

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