.RGB

RGB File

SGI RGB Bitmap Image
Ask a question
QUICK ANSWER

An RGB file is a raster image in the SGI image format, developed by Silicon Graphics Inc. for their IRIX workstations in the 1980s. Open it with GIMP, XnView, or IrfanView on Windows and macOS, or ImageMagick on Linux. The format is safe to open - it contains bitmap pixel data with no scripting capability.

Developer: Silicon Graphics, Inc. (SGI) Category: Raster Image Files MIME: image/sgi
OPENS ON Windows macOS Linux
Related: .JPG · .PNG · .TIF · .ECW

On this page

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

The .rgb extension identifies an SGI image file - the native raster format of Silicon Graphics IRIX workstations, developed in the mid-1980s. Every file begins with the two-byte magic number 0x01DA (decimal 474), followed by a fixed 512-byte header encoding dimensions, channel count, bytes per channel, and a compression flag. Pixel data follows the header.

The format supports uncompressed storage or per-scanline RLE compression, indicated by a flag byte at offset 2. Unlike most raster formats, pixel rows are stored bottom-to-top, and channels are stored separately - all red scanlines, then all green, then all blue - rather than as interleaved RGB triples. Dimensions are limited to 65,535 × 65,535 pixels by the unsigned 16-bit size fields.

Color depth is flexible: 8 or 16 bits per channel, with 1 channel (greyscale), 3 channels (RGB), or 4 channels (RGBA). The same binary container is shared by several extensions - .sgi, .rgba, .bw, and .iris - all identifying the identical format.

The format predates PNG and was widely used in VFX and scientific computing pipelines. Its 16-bit-per-channel support was an early precursor to HDR imaging. GIMP, ImageMagick, and XnView still read .rgb files; QuickTime Player dropped support in macOS 10.15 Catalina (2019).

Security & safety

RISK: LOW

SGI RGB files are raster image data with no scripting or macro capability. They are safe to open. As with any image format, malformed files could theoretically trigger parser vulnerabilities in very old software versions - use up-to-date GIMP or XnView.

Format details

in a nutshell
FULL NAMESGI RGB Bitmap Imageaka SGI image, Silicon Graphics Image
DEVELOPERSilicon Graphics, Inc. (SGI)since circa 1986 (Silicon Graphics IRIS workstations, IRIX OS)
MIME TYPEimage/sgi
TYPEraster image (binary)
This extension is also used by…
  • Raw RGB pixel dump - Some tools output or accept .rgb as a headerless interleaved raw RGB byte stream (no SGI header) - not the same format.
MAGIC BYTES · FILE SIGNATURE
OFFSET
0001
HEX
01DA
ASCII
··
Mandatory 2-byte magic number 0x01DA (decimal 474) at offset 0; followed by 510-byte header (512 bytes total fixed header).

Programs that open RGB files

Windows4 apps
XnView Free (personal) Open directly; XnView reads SGI .rgb format. Use Tools > Convert for batch conversion to PNG/TIFF.
GIMP Open-source File > Open; GIMP reads and writes SGI/RGB natively. Export to PNG or TIFF for modern compatibility.
IrfanView Free (personal) Open via File > Open; supports SGI format natively. Save As PNG/TIFF/JPG.
ACDSee Photo Studio Paid Opens SGI/RGB images for viewing and basic editing.
macOS2 apps
GIMP Open-source File > Open; full SGI read/write support.
XnViewMP Free (personal) macOS version of XnView; opens and converts .rgb files.
Linux2 apps
GIMP Open-source File > Open; full SGI support. Most distros include GIMP in their repos.
ImageMagick (CLI) Open-source convert input.rgb output.png - batch-convert entire directories of .rgb files to modern formats.

Technical details

deep spec
Magic bytes`0x01DA` (decimal 474) at offset 0 - mandatory 2-byte signature present in all SGI image files
Header sizeFixed 512 bytes (2-byte magic + 510 bytes of structured fields and padding)
Byte orderBig-endian
CompressionUncompressed (VERBATIM, flag byte at offset 2 = 0) or per-scanline RLE (flag byte = 1)
Color depth8 or 16 bits per channel; 1 channel (greyscale), 3 channels (RGB), or 4 channels (RGBA)
Dimensions limitMax 65,535 × 65,535 pixels (unsigned 16-bit x-size and y-size fields in header)
Pixel layoutChannels stored separately (all R scanlines, then G, then B - not interleaved); scanlines stored bottom-to-top
Image name field80-byte ASCII image name embedded in the fixed header
Shared formatSame binary container used by `.sgi`, `.rgba`, `.bw`, and `.iris` - extension indicates channel count/type
MIME type`image/sgi`; also `image/x-rgb` and `image/x-sgi`
HDR capability16-bit-per-channel support predates modern HDR formats; used in early VFX and scientific computing pipelines
OS originDeveloped for IRIX (Silicon Graphics workstations); QuickTime Player support dropped in macOS 10.15 Catalina (2019)
Releasedcirca 1986 (Silicon Graphics IRIS workstations, IRIX OS)
Latest versionSGI Image format v1 (no version increments - spec has been stable since the 1980s)
Specificationpaulbourke.net

RGB conversions

Community Q&A

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

Frequently asked questions

How do I open an RGB file?
Use GIMP (free, cross-platform) or XnView on Windows/macOS, or ImageMagick on Linux. IrfanView also supports the format on Windows.
How do I convert an RGB file to PNG?
In GIMP: File > Open the .rgb, then File > Export As and choose PNG. With ImageMagick: 'convert input.rgb output.png'. Both handle RLE and verbatim SGI images.
Why won't QuickTime Player open my RGB file on macOS?
Apple removed SGI image support from QuickTime in macOS 10.15 Catalina (2019). Use GIMP or XnViewMP instead.
Is .rgb the same as .sgi?
Yes - .rgb and .sgi (as well as .rgba, .bw, .iris) all refer to the same SGI image format; only the extension differs, usually indicating channel count (.bw = greyscale, .rgb = RGB, .rgba = RGBA).
What software created .rgb files?
Originally SGI IRIX tools (gl_paint, Showcase) and 1990s VFX software (early Maya, RenderMan, Softimage). Modern 3D and compositing software can still write them but PNG/EXR are preferred today.

References

1Wikipedia - Silicon Graphics Imageen.wikipedia.org
2Library of Congress / fileformat.info - SGI Image Formatwww.fileformat.info

Keep exploring

across the database

Top extensions this week

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

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