.CAL

CAL File

CALS Raster Image (Type 1)
Ask a question
QUICK ANSWER

A CAL file is a CALS Type 1 raster image - a black-and-white scanned engineering drawing or technical document created under the U.S. DoD CALS program using CCITT Group 4 compression. To open one, use XnView, IrfanView, or ImageMagick. The easiest fix is to convert it to a Group 4 TIFF or PDF, which is lossless.

Developer: U.S. Department of Defense (CALS initiative) Category: Raster Image Files Open standard MIME: image/cals
OPENS ON Windows macOS Linux
Related: .JPG · .PNG · .TIF · .ECW

On this page

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

A .cal file is a CALS Raster Image (Type 1), a monochrome bitmap format developed under the U.S. Department of Defense CALS (Continuous Acquisition and Life-cycle Support) initiative in the late 1980s. It was designed for the digital exchange of technical documentation - primarily engineering drawings and scanned technical manuals - between defense contractors and government agencies, governed by standards MIL-STD-1840 and MIL-R-28002.

The format stores a single 1-bit (black-and-white) raster image compressed with CCITT Group 4 (ITU-T T.6) encoding - the same lossless bitonal algorithm used in fax machines and bitonal TIFF images. Every .cal file opens with a fixed 2,048-byte ASCII header containing MIL-STD-1840 keyword/value records - fields such as srcdocid:, rorient:, rpelcnt:, and rdensty: - padded to exactly 2,048 bytes with spaces. The compressed image data begins immediately after that header block.

Because the compression codec is identical to Group 4 TIFF, most CAD and document-management tools can convert .cal to TIFF losslessly and back. The format also appears under the alternative extensions .cals, .gp4, and .c4.

Typical files represent scanned B-, C-, D-, and E-size engineering drawings at 200-400 DPI. The governing standard (MIL-PRF-28002) has since been cancelled, and .cal has largely been superseded by PDF and multi-page TIFF for technical document interchange. Many imaging tools still read and write the format, including IrfanView, XnView MP, ImageMagick, AutoCAD raster tools, and GDAL (gdal_translate).

Security & safety

RISK: LOW

A CALS raster is passive bilevel image data with no scripting or executable content, so the file itself is harmless. The only practical cautions: confirm the .cal is actually a CALS image (the extension is reused by Windows Calendar and SuperCalc), and avoid dubious 'CAL converter' download sites that bundle adware - the legitimate free tools (ImageMagick, GDAL, XnView, IrfanView) handle it cleanly.

Format details

in a nutshell
FULL NAMECALS Raster Image (Type 1)aka CALS Type 1 raster, Continuous Acquisition and Life-cycle Support raster
DEVELOPERU.S. Department of Defense (CALS initiative)since Late 1980s (U.S. DoD CALS initiative; MIL-STD-1840, MIL-R-28002 / MIL-PRF-28002)
MIME TYPEimage/cals
TYPEMonochrome (1-bit) bitmap, CCITT Group 4 compressed (binary + text header)
STANDARDOpen · royalty-free
This extension is also used by…
  • Windows Calendar / SuperCalc data (.cal) - The .cal extension is also used by the old Windows 3.x Calendar applet and by SuperCalc spreadsheets - unrelated, non-image formats.
  • CADAM / drawing exchange (.cal) - Some legacy CAD systems used .cal for related raster/drawing data; identify by the originating application.

Programs that open CAL files

Windows4 apps
IrfanView Freemium Open the .cal to view; File > Save As to convert to TIFF/PNG/PDF. Free for personal use.
ImageMagick Open-source Command line: 'magick drawing.cal drawing.tif' (or .pdf/.png). Reads CALS Type 1 and batch-converts losslessly.
XnView MP / XnView Classic Freemium Open the .cal directly to view; use Tools > Batch Convert or File > Export to save as TIFF/PNG/PDF. Free for personal use.
AutoCAD / Autodesk raster tools Paid Attach/insert the CALS raster as an underlay in a drawing (CAD raster image support). Use when working with the drawing in CAD.
macOS2 apps
ImageMagick Open-source 'magick drawing.cal drawing.pdf' to view/convert from the terminal (install via Homebrew).
XnView MP Freemium Open the .cal to view and convert to TIFF/PNG/PDF on macOS.
Linux2 apps
ImageMagick Open-source 'magick drawing.cal drawing.tif' to convert; 'display drawing.cal' to view. Reads CALS Type 1.
GDAL (gdal_translate) Open-source 'gdal_translate drawing.cal drawing.tif' - GDAL has a dedicated CALS Type 1 read/write driver.

Technical details

deep spec
CompressionCCITT Group 4 (ITU-T T.6) two-dimensional run-length encoding - lossless, bitonal only
Color depth1 bit per pixel (bilevel black-and-white; no grayscale or color support)
Header structureFixed 2,048-byte ASCII block of MIL-STD-1840 keyword:value records, space-padded to exactly 2,048 bytes; compressed image data follows immediately
Key header fieldssrcdocid: (document ID), rtype: (raster type), rorient: (image orientation), rpelcnt: (pixel width and height), rdensty: (resolution in DPI)
MIME typeimage/cals; also recognized as image/x-cals and application/x-cals
File identificationNo binary magic number; identified by ASCII keyword lines (e.g. srcdocid:, rorient:, version: MIL-STD-1840) within the opening 2,048 bytes
Type variantsType I - single monochrome image (most common); Type II - one or more tiled monochrome images; both variants use CCITT Group 4
Developer / originU.S. Department of Defense, under the CALS (Continuous Acquisition and Life-cycle Support) program
Governing standardMIL-R-28002 / MIL-PRF-28002C; standard has been cancelled but format remains readable by current imaging tools
Alternative extensions.cals, .gp4, .c4, .mil - identical binary structure, different naming conventions used across systems
Typical scan resolution200-400 DPI; optimized for B-, C-, D-, and E-size engineering drawings and scanned technical manuals
Typical file sizeTens of kilobytes to a few megabytes for a full-size engineering drawing
Platform compatibilityCross-platform; no byte-order dependency since Group 4 is a bit-stream; supported on Windows, Unix/Linux, and macOS
Superseded byMulti-page TIFF (Group 4) and PDF/A, which replaced .cal for long-term technical-document archiving and inter-agency exchange
ReleasedLate 1980s (U.S. DoD CALS initiative; MIL-STD-1840, MIL-R-28002 / MIL-PRF-28002)
Latest versionMIL-PRF-28002C (Type I/II); standard now deprecated/cancelled but format still read by imaging tools
Open standardYes · royalty-free
Specificationen.wikipedia.org

CAL conversions

Community Q&A

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

Frequently asked questions

What is a .cal file?
Most often a CALS raster image - a black-and-white scanned engineering drawing or technical document stored in the U.S. military's CALS Type 1 format with CCITT Group 4 compression. (The extension is also reused by Windows Calendar and SuperCalc.)
How do I open a CAL (CALS raster) file?
Use an imaging tool that reads CALS: XnView/XnViewMP, IrfanView, ImageMagick or GDAL. The simplest path is to convert it to a TIFF or PDF, which preserves the image losslessly.
How do I convert a CAL file to PDF or TIFF?
With ImageMagick run 'magick drawing.cal drawing.pdf' (or .tif), or use XnView/IrfanView's Save As. Because CALS already uses Group 4, conversion to Group 4 TIFF/PDF is lossless.
Can I convert a CAL file to DWG or DXF (editable CAD)?
Not directly - a CALS file is a raster (a picture of the drawing), not vector geometry. Turning it into editable CAD requires raster-to-vector tracing (e.g. Scan2CAD), which redraws it approximately rather than converting it.
Why is my CAL image only black and white?
Because CALS is a bilevel (1-bit) format using fax-style Group 4 compression - it's designed for scanned line drawings and text and cannot store color or grayscale. That's normal for the format.
Is every .cal file an image?
No. The extension is also used by the old Windows Calendar applet and by SuperCalc spreadsheets. Check the source: if it came from an engineering/defense document archive it's almost certainly a CALS raster image.

References

1Wikipedia - CALS Raster file formaten.wikipedia.org
2FileFormat.Info - CALS Raster file format summarywww.fileformat.info

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.MDMarkdown Document
3.CRDOWNLOADChrome Partial Download File
4.BINCD/DVD Disc Image (BIN/CUE)
5.PARTPartial Download File
6.NOMEDIAAndroid No-Media Marker File
7.RPMSGRestricted Permission Message
8.EXEWindows Executable (Portable Executable)
9.AVIFAV1 Image File Format (AVIF)
10.ICSiCalendar data 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