.ADS

ADS File

Ada Package Specification (Source File)
Ask a question
QUICK ANSWER

An ADS file is plain Ada source code, specifically the package specification (the public interface) written in the Ada programming language. Open it in any text editor or an Ada IDE like GNAT Studio or VS Code with the Ada extension. It is not executable on its own - compile the full Ada project with the GNAT toolchain to produce a binary.

Developer: Ada language (ISO/IEC 8652); GNAT convention by AdaCore/GNU Category: Developer Files Open standard MIME: text/x-ada
OPENS ON Windows macOS Linux
Related: .DO · .MD · .HEX · .XSD

On this page

19k+ extensions indexed
Last reviewed Jun 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 ADS file format?

An .ads file is an Ada package specification - the interface half of an Ada package. Under the GNAT compiler naming convention (the de-facto standard across the Ada ecosystem), every Ada package is split across two files: the specification in .ads and the implementation body in an .adb file.

The .ads file declares what is publicly visible to other compilation units: types, subtypes, constants, subprogram signatures (procedure and function profiles), task types, and generic parameters. It contains no executable code or subprogram bodies - only the declarations that form the contract other packages depend on.

Syntactically, a specification opens with package <Name> is and closes with end <Name>;. Context clauses (with and use statements) at the top list the packages the spec depends on. Ada comments begin with --.

The format is plain UTF-8 (or ASCII) text with MIME type text/x-ada. There are no magic bytes; files are identified by their Ada source structure. The Ada dialect in use - Ada 83, 95, 2005, 2012, or Ada 2022 (ISO/IEC 8652:2023) - is controlled by GNAT compiler flags such as -gnat2022 or a source-level pragma Ada_2022.

.ads files are opened in GNAT Studio, Visual Studio Code with the Ada/SPARK extension, or any plain-text editor. The GNAT toolchain compiles them alongside their .adb bodies; build coordination is handled by a .gpr project file.

Security & safety

RISK: LOW

An .ads file is plain Ada source text and cannot run by itself, so opening one to read it is safe. The normal caution for any source code applies: review code from untrusted sources before compiling and running it, since the surrounding project will produce an executable. There is no DRM, encryption or special handling - treat it like any text/code file. Install the GNAT toolchain only from official sources (AdaCore/GCC).

Format details

in a nutshell
FULL NAMEAda Package Specification (Source File)aka Ada spec file, Ada package spec
DEVELOPERAda language (ISO/IEC 8652); GNAT convention by AdaCore/GNUsince 1980 (Ada language); .ads/.adb naming from GNAT (early 1990s)
MIME TYPEtext/x-ada
TYPEPlain-text Ada source code (the specification/interface part of a package)
STANDARDOpen · royalty-free
This extension is also used by…
  • Advertising / ad-serving file - Some ad systems and AdSense-related tooling use .ads for ad-content or ad-tag files; unrelated to Ada source.
  • Generic 'address book' / settings export - A few legacy programs save settings or address data with an .ads extension; identify by the originating application.

Programs that open ADS files

Windows3 apps
Notepad Open-source Open the .ads as text to read or edit it; set language to Ada for syntax highlighting.
GNAT Studio Open-source Open the Ada project (.gpr) or the .ads file directly for syntax highlighting, navigation and building with the GNAT toolchain.
Visual Studio Code (Ada extension) Free Install AdaCore's Ada extension, then open the .ads for highlighting, navigation and the Ada Language Server.
macOS3 apps
GNAT Studio Open-source Open the .ads/.gpr to read, edit and build with GNAT.
Visual Studio Code (Ada extension) Free Open the .ads with the Ada extension for highlighting and navigation.
Any text editor (TextEdit/BBEdit) Built-in Open the .ads as plain text to read the package interface.
Linux3 apps
GNAT (GCC Ada) + gprbuild Open-source Read the .ads in any editor; build with gnatmake/gprbuild from the GNAT toolchain (gcc -c file.ads to syntax-check the spec).
GNAT Studio Open-source Full Ada IDE: open the project and the .ads for editing, navigation and building.
gedit / any text editor Open-source Open the .ads as text to read or edit the spec.

Technical details

deep spec
File typePlain-text Ada source - the specification (interface) half of an Ada package
MIME typetext/x-ada (also accepted as text/plain)
Text encodingUTF-8 or ASCII; Latin-1 historically; GNAT encoding selectable via -gnatiX flag
Binary signatureNone - plain text; identified by Ada keyword structure (package <Name> is … end <Name>;)
Typical file size1 KB - 100 KB (spec-only declarations; bodies live in the companion .adb)
GNAT naming ruleBase name must match the package name, lowercased with dots replaced by dashes - e.g., Ada.Containers maps to ada-containers.ads
StructureOptional with/use context clauses, then package <Name> is, public declarations, optional private section, end <Name>;
Content constraintDeclarations only - types, subtypes, constants, subprogram profiles, generics; no executable code or bodies
Visibility modelPublic part visible to all dependent packages; private section accessible only within the package and its children
Language dialectAda 83 / 95 / 2005 / 2012 / 2022 selected via GNAT -gnatXX flags or pragma Ada_XXXX in source
Compiled outputGNAT produces a .ali (Ada Library Information) file and object file (.o) for each compiled .ads/.adb pair
Build coordinationGNAT Project file (.gpr) lists .ads sources and controls per-unit compilation switches
Platform supportCross-platform: Linux, Windows, macOS, and embedded targets (VxWorks, RTEMS, bare-metal ARM, RISC-V)
Compiler ecosystemGNAT (GCC Ada front-end, AdaCore), GNAT LLVM, PTC ObjectAda, Green Hills MULTI Ada
Released1980 (Ada language); .ads/.adb naming from GNAT (early 1990s)
Latest versionAda 2022 (ISO/IEC 8652:2023)
Open standardYes · royalty-free
Specificationwww.adaic.org

ADS conversions

Community Q&A

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

Frequently asked questions

How do I open an ADS file?
It's plain Ada source text - open it in any text editor (Notepad++, VS Code, gedit) or an Ada IDE like GNAT Studio. For syntax highlighting and navigation use VS Code's Ada extension or GNAT Studio.
What's the difference between .ads and .adb?
By GNAT convention .ads is the package specification (the interface - what's visible to other code) and .adb is the package body (the implementation). One package is normally split across both files.
How do I compile an .ads file?
You compile the whole Ada project, not the spec alone. Use the GNAT toolchain - gnatmake or gprbuild with a .gpr project file. gcc -c file.ads (with the Ada front-end) will syntax-check a spec.
Is an .ads file an Ada file or an ad/advertising file?
Both uses exist. In a developer context (an Ada project, paired with .adb files) it's Ada package specification source. Some advertising/ad-serving tools also use .ads - check where the file came from.
Can I run an ADS file?
No - it's an interface declaration, not a program. It has to be compiled together with its body and a main procedure (via GNAT) to produce an executable you can run.
Do I need the .adb to use a package?
To compile a working program you generally need both the spec and its body, plus the rest of the project. A spec that declares only constants/types may compile without a body, but most packages require their .adb.

References

1GCC - GNAT (GNU Ada compiler)gcc.gnu.org
2Ada Information Clearinghouse - Ada standards (Ada 2022)www.adaic.org

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

.DOStata Do-File
.MDMarkdown Document
.HEXIntel HEX File
.XSDXML Schema Definition
.MAPSource Map (JavaScript / CSS)
.CONFIGConfiguration File

Free file tools

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

Open the toolbox

Browse file extensions A-Z