Free webp to jpg
MacPaint

MacPaint Image

image/x-macpaint Released 1984 · by Apple Computer, Inc. (Bill Atkinson)

The image/x-macpaint MIME type represents the MacPaint image format, created in 1984 by Bill Atkinson for the original Apple Macintosh. As one of the first widely used raster graphics formats for personal computers, it is heavily tied to the hardware limitations of the era. MacPaint images are strictly 1-bit monochrome (black and white) and have a locked, hard-coded resolution of 576 x 720 pixels—exactly matching the printable area of an 8.5 x 11-inch piece of paper on an Apple ImageWriter printer at 72 dots per inch. The format uses Apple's PackBits (Run-Length Encoding) algorithm to keep file sizes small enough to fit on a 400KB floppy disk.

Legacy & Raster Graphics Production Ready

Technical Specifications

MIME Type
image/x-macpaint
Extensions
.mac.pntg.pnt.macp
Container
Raw pixel payload with a 512-byte pattern header
Compression
PackBits (Run-Length Encoding)
Algorithms
PackBits (Apple RLE)
Color Depth
1-bit (Monochrome)
Metadata
None
Capabilities
Transparency
Animation
Progressive Loading
Alpha Channel
HDR Support
Official Specification
Aliases: image/macpaintapplication/x-macpaint

Magic Bytes & HTTP Headers

File Signature (Magic Bytes)
None (Relies on classic Mac OS 'PNTG' OSType)
ASCII: None
HTTP Headers
Content-Type: image/x-macpaint
HTML Accept Attribute
accept="image/x-macpaint, .mac, .pntg, .pnt"

Browser Support Matrix

Browser Status Min Version
Chrome Chrome
Not Supported
Firefox Firefox
Not Supported
Safari Safari
Not Supported
Edge Edge
Not Supported
Internet Explorer Internet Explorer
Not Supported Legacy

Advantages & Limitations

Advantages
  • Profoundly historically significant as the format that introduced millions to the concept of bitmap digital painting
  • Extremely simple PackBits compression makes it easy for emulator developers or archivists to write parsers from scratch in under an hour
Limitations
  • Severely limited: strictly black and white, and hard-locked to exactly 576 x 720 pixels
  • Lack of standard magic bytes makes programmatic file sniffing unreliable on modern filesystems without relying on the file extension
  • Completely obsolete and unsupported by modern web browsers or consumer image viewers

Developer Code Snippets

import magic
# Libmagic may struggle to identify MacPaint files without extensions due to the lack of strong magic bytes.
print(magic.from_file('vintage.mac', mime=True)) # May output 'application/octet-stream'
const fs = require('fs');
// Structural detection for MacPaint is difficult. 
// You must rely heavily on file extensions (.mac, .pntg) 
// or parse the PackBits stream starting at offset 512 to validate it unpacks to exactly 576 * 720 bits (51840 bytes).
import (
    "net/http"
    "strings"
)
// Native Go HTTP detection will not recognize MacPaint.
// isMacPaint := strings.HasSuffix(strings.ToLower(filename), ".mac") || strings.HasSuffix(strings.ToLower(filename), ".pntg")
$mime = mime_content_type('vintage.mac');
echo $mime; // Standard PHP setups will likely return 'application/octet-stream'

File Detection Steps

How to programmatically detect a image/x-macpaint file by reading its raw bytes:

  1. 1 MacPaint files do not have standard 'magic bytes' in the file header.
  2. 2 Historically, the classic Mac OS identified them via the Resource Fork using the file Type code 'PNTG'.
  3. 3 In modern operating systems without resource forks, parsers look at the first 512 bytes (the header block). This block often contains the 38 customized 8x8 pixel patterns used by the MacPaint application, padded with zeros. The actual image payload (720 scanlines of PackBits-compressed data) begins precisely at byte 512.

Software Support

G
GraphicConverter
X
XnView
ImageMagick ImageMagick
N
Netpbm (macptopbm)

Conversion Tools

Share & Embed

Markdown Badge
MacPaint Format Badge
[![MacPaint Format](https://freewebptojpg.com/mime/image/macpaint/badge.svg)](https://freewebptojpg.com/mime/image/macpaint)
Interactive iframe Widget
<iframe src="https://freewebptojpg.com/mime/image/macpaint/embed" width="100%" height="280" style="border:1px solid #cbd5e1;border-radius:8px;" title="MacPaint Specs"></iframe>

JSON API

All data on this page is available as a free, open JSON API. Use it in your project, documentation, or tooling.

GET https://freewebptojpg.com/mime/image/macpaint.json Open JSON
Free to use
No auth required
CORS enabled
Use from any domain
Cached 24h
Cache-Control headers set

Frequently Asked Questions

What is a MacPaint (.mac, .pntg) file?

A MacPaint file is a historic raster image format created for the original Apple Macintosh in 1984. It is strictly black and white and always measures exactly 576 by 720 pixels.

How can I open a MacPaint file today?

Because the format is entirely obsolete, modern operating systems and web browsers cannot open it. You must use legacy-focused image viewers like XnView, GraphicConverter (on macOS), or command-line tools like ImageMagick and Netpbm.

Why are MacPaint files always 576x720 pixels?

The format was designed specifically to be printed on the Apple ImageWriter dot-matrix printer. At 72 DPI (the exact resolution of the original Mac display), 576x720 pixels equates to exactly 8 by 10 inches, leaving a standard half-inch margin on standard US Letter paper.

Related Formats

Share this format