Flexible Image Transport System (.fits)
IAU StandardFlexible 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:
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 3DASCII REPRESENTATION: SIMPLE =
Standardization: IAU FITS Standard v4.0
Technical Specifications
| Container Architecture | 2880-byte header blocks composed of 80-character keyword=value records, followed by 2880-byte binary data array blocks |
| Compression | Tiled image compression (Rice, Gzip, H-compress, PLIO) or uncompressed binary |
| Byte Endianness | Big-Endian (IEEE floating-point standard) |
| Color Spaces | Raw photometric sensor readings, multi-wavelength infrared/ultraviolet/X-ray arrays |
| Channels & Structure | Multi-dimensional data cubes (2D images, 3D spectroscopic cubes, binary tables) |
| Max Dimensions | Up to 999 dimensions (NAXIS) |
| Transparency | NaN (Not-a-Number) blank pixel markers |
| Streaming & Progressive | Header specifies exact data block dimensions for direct random access |
Technical Comparison Matrix: FITS vs Competitors
| Technical Attribute | FITS (Current) | HDF5 | TIFF | NETCDF |
|---|---|---|---|---|
| Celestial Coordinates (WCS) | Native standard (RA & Dec celestial mapping) | None (requires custom schema) | None (geographic GIS only) | Earth latitude/longitude only |
| Primary Discipline | Astronomy & Astrophysics | High-energy physics & machine learning | Desktop photography & scanning | Atmospheric & ocean science |
| Block Alignment | Fixed 2880-byte blocks | Hierarchical HDF chunks | Strips or tiles | NetCDF record variables |
| Telescope Deployment | Hubble, JWST, ESO, ALMA | Simulations & supercomputing | Consumer / medical imaging | NOAA 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
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.