.pcx

PCX file: what it is and how to open it

A PCX file is a PC Paintbrush image, a format from the DOS era found in old games, screenshots and fax software. Open it in our Android or Windows app or in GIMP, or convert a copy to PNG for anything newer.

Drop your PCX file here

Opens on this device. Nothing is uploaded. Any other file works too.

What is a PCX file?

PCX is the image format of PC Paintbrush, a painting program for MS-DOS from ZSoft Corporation. ZSoft defined it in 1985 and last updated it in 1991, and it was common in games and screenshots through the late 1980s and the 1990s. Scanning and fax software also used it, with .dcx holding multi-page faxes.

PCX is older than GIF, JPEG and PNG. Browsers and the built-in Android and Windows image decoders do not read it. Our Android and Windows apps supply their own PCX decoder; image editors such as GIMP and IrfanView also read it.

What is inside

A PCX file starts with a 128-byte header: the byte 0A, a version number from 0 to 5, an encoding flag, bits per pixel, the image bounds, the resolution, a 16-color palette, the number of color planes and the bytes per line.

The pixels follow, run-length encoded line by line: a byte with its top two bits set says how many times to repeat the next byte. A 256-color image keeps its palette in the last 769 bytes of the file, the byte 0C followed by 256 sets of red, green and blue values. 24-bit images use three color planes and no palette.

A 256-color PCX file. The palette sits at the very end, after the pixels.

How to open a PCX file

Windows

  • GIMPFree. Opens PCX and exports PNG copies or new PCX files.
  • IrfanViewFree for non-commercial use. Opens and saves PCX. Its DCX multi-page support needs a plugin.
  • Universal File Opener for WindowsOursOpens PCX images offline and saves PNG, JPEG or BMP copies.

Mac

  • GIMPFree. Opens PCX and exports PNG copies.

Android

  • Universal File OpenerOursViews PCX offline, including planar RLE variants, converts a copy to PNG or JPEG, or saves edits as 24-bit PCX.

In a browser

  • No browser supportNo browser decodes PCX, and neither does our browser opener. Convert it to PNG with GIMP or our apps first.

Won’t open?

Nothing on my computer opens it

Windows includes no PCX codec. Install GIMP, which is free for Windows and Mac, or open the file in Universal File Opener for Windows.

It is a multi-page DCX fax

DCX wraps several PCX pages. IrfanView lists DCX support through its plugins. Our apps read individual PCX images; use a reader that explicitly supports multi-page DCX.

The colors are wrong

A 256-color PCX keeps its palette in the last 769 bytes, so a cut-off copy loses it and shows the wrong colors. Copy or download the file again.

Transparent areas turn white when saved as PCX

Our Android app saves PCX as 24-bit, which has no transparency, so transparent areas become white. Keep a PNG copy when you need transparency.

Convert a PCX file

  • To PNG on AndroidOpen it in Universal File Opener, tap Edit, then Image tools, then Convert to, and choose PNG.
  • To PNG on a computerOpen it in GIMP, choose File, Export As and give the copy a .png name.

PCX files in our apps

Open PCX images offline in Universal File Opener on Android or Windows. Android converts a copy to PNG or JPEG or saves edits as 24-bit PCX, which has no transparency; Windows saves PNG, JPEG or BMP copies.

Get it on Google PlayGet it from Microsoft Store
All Android tools and limits for PCX files
  • Decode and view PCX, including planar RLE variants.
  • Convert to PNG or JPEG, or save supported edits as PCX.

Limits

  • 24-bit PCX output does not support transparency. Transparent areas become white on save.

Walkthrough: Edit and convert images on Android