Convert to SUN online

Free online converter for converting files to SUN.

Drag and drop images,
videos or any files

Drag files here. Maximum size — 5 GB

How to convert files to SUN?

1
Upload your file
Click the 'Choose File' button or drag and drop your file into the upload area. Supported formats include PNG, JPG, WEBP and more.
2
Select the output format
Make sure SUN is selected as the conversion format. Adjust additional settings if needed.
3
Start the conversion process
Click the 'Convert' button and wait a few seconds. All conversions are performed on our servers.
4
Download the result
Once the process is complete, click the 'Download' button and save the file in SUN format.

.SUN

SUN
Sun Raster (Sun Rasterfile / RAS)
Data typeImage
MIME typeimage/x-sun-raster
DeveloperSun Microsystems
Primary use casesLegacy SunOS/Solaris raster graphics; interchange/compatibility with older UNIX tooling; archived bitmap assets from Sun workstations

What is the SUN file format?

SUN (Sun Raster) is a legacy bitmap format from Sun Microsystems (SunOS/Solaris) with a simple header, optional palette, and pixel data stored uncompressed or with basic RLE.

SUN file characteristics

Data typeImage
MIME typeimage/x-sun-raster
CompressionOptional lossless RLE
Color depthHistorically common depths are 1-bit (bitmap) and 8-bit (grayscale or paletted); many decoders also support 24-bit (color) and 32-bit (color with an extra byte used as padding/attributes rather than alpha)
Color spaceGrayscale, indexed/paletted (with colormap), and RGB; some toolchains support 24/32-bit variants; transparency is not defined by the format
Transparency supportNo
Animation supportNo
EXIF / Metadata supportNo
MetadataVery limited. The header and optional colormap carry technical info; there is no standardized Exif/XMP container. Some software may store extra data via nonstandard conventions, but interoperability is not guaranteed.
Structure typeHeader + optional colormap + pixel data (rows padded to 16-bit) with optional byte-RLE
Standard / SpecificationSunOS rasterfile.h / rasterfile(5) (commonly referenced as rasterfile.h 1.11 dated 1989-08-21)
Typical file sizeOften large because data is commonly uncompressed; RLE may reduce size for flat areas but not for photographic/noisy images
Year introduced1989

Advantages

The SUN file format offers several advantages that make it suitable for common use cases.

  • Simple structure;
  • Lossless storage (raw or RLE);
  • Supports palette/grayscale/RGB;
  • Widely supported by conversion tools for legacy compatibility

Limitations

The SUN file format has certain limitations that may affect its use in specific scenarios.

  • Unofficial MIME types vary;
  • Many modern apps don’t open it natively. No standard transparency/alpha semantics, no layers, and limited metadata. Best used as a legacy interchange format—convert to PNG/WebP/AVIF for delivery.

Compatibility

SUN images are widely supported and can be viewed on most devices and platforms.

  • Supported platforms: Unix/Solaris heritage; today readable on Windows, macOS, Linux via tools/libraries (e.g., Netpbm, ImageMagick, GIMP, FFmpeg)
  • Supported devices: Legacy Unix workstations; modern computers via converters/viewers
  • Browser support: No
  • Mobile support: No
  • Backward compatibility: Yes

Security considerations

Treat as untrusted input: validate dimensions, row padding expectations, and RLE streams to avoid overflows/overreads in decoders

License

Legacy vendor format; specification is publicly documented (SunOS rasterfile.h / rasterfile(5)); not a formal modern standard

SUN usually refers to the Sun Raster (RAS) file format used on SunOS. Files commonly use the extensions .ras and .sun. The format starts with an 8×32-bit integer header (magic 0x59A66A95), followed by an optional color map, then raster lines stored top-to-bottom; each row is padded to a 16-bit boundary. Data may be uncompressed (RT_OLD/RT_STANDARD) or byte-RLE encoded (RT_BYTE_ENCODED). The format is publicly documented in Sun’s rasterfile.h / rasterfile(5), but it has no officially registered IANA MIME type—software often uses unofficial types like image/x-sun-raster or image/x-cmu-raster.