.FITS

FITS File

Flexible Image Transport System File
Ask a question
QUICK ANSWER

A FITS file is the standard scientific image format used by telescopes, astrophotography cameras, and archives such as NASA and ESA. Open it with SAOImageDS9 (free) or NASA FITS Liberator. The extensions .fits, .fit, and .fts all refer to the same format and can be safely renamed.

Developer: IAU FITS Working Group / NASA (community standard; no single corporate owner) Category: Raster Image Files Open standard MIME: image/fits
OPENS ON Windows macOS Linux Web
Related: .JPG · .PNG · .TIF · .ECW

On this page

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

.fits files are the universal standard for storing and exchanging astronomical data, in continuous use since 1981. Developed by the IAU FITS Working Group and endorsed by NASA, the format follows the principle of "once FITS, always FITS" - no backward-incompatible changes are ever made, so files created in 1981 remain readable today.

A .fits file is structured as a sequence of Header and Data Units (HDUs). Each HDU contains a plain ASCII header made up of 80-character keyword=value records padded to 2880-byte blocks, followed by binary data. The primary HDU usually holds the main image or data array; extension HDUs can store supplementary images, binary tables of source catalogs, or spectra. All multi-byte binary values use big-endian byte order.

Unlike everyday image formats, .fits handles far more than simple pictures. Astronomers store data cubes (for example, radio survey data with RA, Dec, and velocity axes), spectral time series, and large source catalogs within a single file. Pixel values can be 8-bit unsigned integers, 16/32/64-bit integers, or 32/64-bit IEEE floating-point - the BITPIX keyword specifies the type. Optional CHECKSUM and DATASUM keywords provide integrity verification.

.fits is not suited for everyday photography: there is no built-in lossy compression, files are large, and software support is narrow outside astronomy. NASA's Hubble, Chandra, and JWST archives distribute data in this format. The extensions .fit and .fts are interchangeable names for the identical format.

Security & safety

RISK: LOW

FITS is a passive scientific data file containing pixel arrays and ASCII metadata - no executable code. Opening one is safe. The only pitfall is using wrong software (a FITS astronomy file won't open in an image editor without FITS support, and will appear as an error or blank).

Format details

in a nutshell
FULL NAMEFlexible Image Transport System Fileaka FITS image, astronomical FITS file
DEVELOPERIAU FITS Working Group / NASA (community standard; no single corporate owner)since 1981 (first IAU standard)
MIME TYPEimage/fits
TYPEScientific image and data table container (binary data with ASCII headers)
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
000102030405
HEX
53494D504C45
ASCII
SIMPLE
No binary magic bytes - FITS begins with a plain ASCII header. The first 80-byte record starts with the keyword 'SIMPLE' followed by spaces and '= T'. The extension .fits, .fit and .fts all refer to the identical FITS format.

Programs that open FITS files

Windows4 apps
GIMP Open-source GIMP can open FITS files natively (simple images); adjust levels/curves after import to make the image visible.
SAOImageDS9 Open-source The standard free astronomy viewer; File > Open the .fits to display, scale, and analyse. Supports multi-extension FITS, WCS, catalogs.
NASA FITS Liberator Free Open FITS and export to 16-bit TIFF for astrophotography processing in Photoshop/GIMP.
XnView MP Freemium Free viewer for quick visual inspection of FITS images (not for science analysis).
macOS3 apps
SAOImageDS9 Open-source Standard FITS viewer and analysis tool for macOS; File > Open.
NASA FITS Liberator Free Export FITS to 16-bit TIFF on Mac for astrophotography post-processing.
XnView MP Freemium Free FITS viewer for Mac.
Linux3 apps
GIMP Open-source GIMP on Linux opens FITS images natively.
SAOImageDS9 Open-source The primary FITS viewer on Linux; open via File > Open or command-line 'ds9 file.fits'.
XnView MP Freemium Free FITS viewer available for Linux.
Web1 app
Aladin Lite Free Browser-based astronomy sky viewer; can load FITS images and overlay sky survey data.

Technical details

deep spec
Format typeScientific image and multi-dimensional data table container
EncodingBinary data with ASCII header blocks
Byte orderBig-endian (network byte order for all binary data values)
Header structure80-character keyword=value records, padded to 2880-byte blocks
ContainerSequence of HDUs (Header and Data Units); self-describing, no external schema needed
CompressionNone (standard); optional tiled image compression in BINTABLE extension (FITS convention)
Pixel depth8-bit unsigned, 16/32/64-bit integer, or 32/64-bit IEEE float; BITPIX keyword specifies type
Maximum axesUp to 999 axes (NAXIS keyword); each axis limited by 64-bit integer length
Typical file size100 KB - several GB (JWST/HST images routinely multi-GB)
Integrity checkOptional DATASUM and CHECKSUM keywords (1's-complement checksums per RFC 4047)
MIME typeimage/fits (also application/fits; both registered in RFC 4047)
Alternate extensions.fit, .fts (identical format; all three interchangeable)
Associated OSWindows, macOS, Linux, web (Aladin Lite)
Released1981 (first IAU standard)
Latest versionFITS Standard 4.0 (2016)
Open standardYes · royalty-free
Specificationfits.gsfc.nasa.gov

FITS conversions

Community Q&A

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

Frequently asked questions

What is a FITS file?
FITS (Flexible Image Transport System) is the standard data format in astronomy, used by telescopes, astrophotography cameras, and NASA/ESA archives to store images, spectra, and data tables alongside rich observation metadata. It has been the astronomy standard since 1981.
How do I open a FITS file?
Use SAOImageDS9 (free, the professional standard) or NASA FITS Liberator (free, for astrophotography export). XnView MP and GIMP can also open simple FITS images for a quick look. Aladin Lite works in the browser.
Is .fits the same as .fit?
Yes - .fits, .fit, and .fts are all the same FITS format. If a tool insists on a specific extension, simply rename the file. No conversion is needed.
How do I convert a FITS image to JPEG or TIFF?
Open the FITS in SAOImageDS9 or NASA FITS Liberator and export. You must choose a scaling (linear, log, sqrt) first because FITS pixel values span a much larger range than 8-bit output can hold. For astrophotography post-processing, export to 16-bit TIFF.
Why can't I open my FITS file in Photoshop or a normal image viewer?
Most everyday image viewers don't support FITS - the format stores data in scientific precision (16/32-bit values, big-endian) without any standard image compression. Use an astronomy viewer (DS9, FITS Liberator) to open and then export to TIFF/PNG.
What is a multi-extension FITS (MEF) file?
A FITS file can contain multiple Header+Data Units (HDUs) - for example, different amplifier readouts from a CCD, different filters, or an image plus a source catalog. SAOImageDS9 handles MEF files and lets you select which extension to view.

References

1RFC 4047 - MIME Sub-type Registrations for FITSwww.rfc-editor.org
2NASA FITS Support Office - FITS Standard 4.0fits.gsfc.nasa.gov

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.JPGJPEG Image
4.EXEWindows Executable (Portable Executable)
5.DATProgram Data File (generic)
6.RPMSGRestricted Permission Message
7.PARTPartial Download File
8.DBSQLite Database File
9.BINCD/DVD Disc Image (BIN/CUE)
10.MDMarkdown Document

Related extensions

.JPGJPEG Image
.PNGPortable Network Graphics
.TIFTagged Image File Format
.ECWEnhanced Compression Wavelet (ECW) image
.AVIFAV1 Image File Format (AVIF)
.JP2JPEG 2000 Image (ISO/IEC 15444-1)

Free file tools

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

Open the toolbox

Browse file extensions A-Z