Flexible Image Transport System (.fits)

IAU Standard

Flexible Image Transport System (FITS) is the official astronomical data format endorsed by the International Astronomical Union (IAU) and NASA, capturing astronomical telescope observations, deep-space imagery, and multi-dimensional spectroscopic data cubes.

Convert FITS to PNG

Free in-browser FITS to PNG converter. Convert files instantly on your device.

Inspect & Metadata

Operating systems and file analyzers identify FITS files by inspecting the leading binary byte sequence:

Select or drop files here

100% private in-browser conversion - files never leave your device

or paste Ctrl+V
Zero-Network-Transmission Privacy Guarantee: 0 bytes uploaded to external servers. All processing occurred locally in your browser sandbox.

Byte-Level Header Signature (Magic Bytes)

Operating systems and file analyzers identify FITS files by inspecting the leading binary byte sequence:

HEX SIGNATURE (OFFSET 0):

53 49 4D 50 4C 45 20 20 3D

ASCII REPRESENTATION: SIMPLE =

Standardization: IAU FITS Standard v4.0

Technical Specifications

Container Architecture2880-byte header blocks composed of 80-character keyword=value records, followed by 2880-byte binary data array blocks
CompressionTiled image compression (Rice, Gzip, H-compress, PLIO) or uncompressed binary
Byte EndiannessBig-Endian (IEEE floating-point standard)
Color SpacesRaw photometric sensor readings, multi-wavelength infrared/ultraviolet/X-ray arrays
Channels & StructureMulti-dimensional data cubes (2D images, 3D spectroscopic cubes, binary tables)
Max DimensionsUp to 999 dimensions (NAXIS)
TransparencyNaN (Not-a-Number) blank pixel markers
Streaming & ProgressiveHeader specifies exact data block dimensions for direct random access

Technical Comparison Matrix: FITS vs Competitors

Technical AttributeFITS (Current)HDF5TIFFNETCDF
Celestial Coordinates (WCS)Native standard (RA & Dec celestial mapping)None (requires custom schema)None (geographic GIS only)Earth latitude/longitude only
Primary DisciplineAstronomy & AstrophysicsHigh-energy physics & machine learningDesktop photography & scanningAtmospheric & ocean science
Block AlignmentFixed 2880-byte blocksHierarchical HDF chunksStrips or tilesNetCDF record variables
Telescope DeploymentHubble, JWST, ESO, ALMASimulations & supercomputingConsumer / medical imagingNOAA weather satellites

Common Corruption Modes & Hex Recovery Guide

Astrophotography software error: 'Header does not end with END keyword'.

Root Cause: Missing 'END' keyword in the final 80-character card of the 2880-byte header block.

Recovery: Pad header with 80-character spaces and append 'END' using File2File FITS Tool.

Security Analysis & Parser Attack Vectors

FITS decoders process 80-character header cards where unbounded string copies can trigger buffer overflows in legacy C libraries.

Known Attack Vectors

  • Buffer overflow in cfitsio library when parsing malformed header keyword strings.
  • Integer overflow during NAXIS dimension array allocation.
  • Denial of service through pathological tiled image decompression.

Defensive Best Practices: Keep cfitsio libraries updated and decode FITS files in isolated WebAssembly memory spaces.

Historical Origins & Milestones

2018IAU approves FITS Standard Version 4.0, formalizing 64-bit integers and tiled compression.
1990Hubble Space Telescope launches, storing all scientific observations in FITS format.
1981Wells, Greisen, and Harten publish the foundational FITS standard in Astronomy & Astrophysics.

Key Advantages & Pros

  • The global standard for professional astronomy: used by NASA, ESA, the James Webb Space Telescope (JWST), and Hubble.
  • World Coordinate System (WCS) metadata maps image pixel coordinates directly to exact celestial coordinates (Right Ascension and Declination).
  • Preserves true floating-point scientific photometric measurements without lossy tonal mapping.

Technical Limitations & Cons

  • Fixed 2880-byte block padding creates empty padding bytes in small files.
  • Cannot be viewed in standard consumer image viewers without astrophotography software (DS9, Siril, PixInsight).
  • Strict Big-Endian byte order requires byte swapping on modern x86 and ARM processors.

Interesting Technical Trivia

  • Every valid FITS file begins with the exact ASCII text 'SIMPLE = T' in the first 30 bytes.
  • The 2880-byte block size was chosen in 1979 because it matched the exact recording capacity of one physical block on standard 9-track magnetic tapes.
  • The stunning colorful photos of distant galaxies from the James Webb Space Telescope are created by combining multiple monochrome FITS files taken through different infrared filters.

Frequently Asked Technical Questions

Why do raw telescope photos look black in FITS format?

Because FITS files store raw 16-bit or 32-bit linear scientific light measurements. They must be 'stretched' (using a non-linear histogram curve) to bring out faint nebulae and distant galaxies.

How can I convert FITS to PNG or JPG?

You can tone-map, stretch, and convert astronomical FITS files into beautiful PNG or JPG images in seconds using File2File.app directly in your browser.

What software opens FITS files?

SAOImage DS9, PixInsight, Siril, AstroPixelProcessor, GIMP (with plugin), and File2File.app.