Convert PNM to SIXEL

Turn PNM images into SIXEL. A SIXEL picture, which some terminals draw, in at most 256 colors.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop PNM files on the dialor turn it to pick what to do

A SIXEL picture for your terminal.Your PNM image becomes one SIXEL file in at most 256 colors.

  1. What you get

    One SIXEL file made from your PNM image. SIXEL is a format for terminals that draw graphics inline, so a terminal that supports it can show the picture.

    PNM covers PBM, PGM and PPM files, and all three are accepted as input.

  2. What changes

    The SIXEL picture uses at most 256 colors. An image with more colors than that is reduced to fit, so the colors in the output can differ from the colors in the PNM.

    Not every terminal draws SIXEL. A terminal that does not support it cannot show the picture.

  3. Going the other way

    To turn a SIXEL file back into a PNM image, use SIXEL to PNM. This conversion has no options, so there is nothing to set before you convert.

PNM and SIXEL.What each format is.

The formats

From · PNM

Portable Anymap

Portable anymap images, the simplest raster format: PBM, PGM and PPM.

Extensions
.pnm .ppm .pgm .pbm
MIME type
image/x-portable-anymap
Kind
Images
To · SIXEL

Sixel

Images encoded for terminals that draw graphics inline.

Extensions
.sixel .six
MIME type
image/x-sixel
Kind
Images

In your code.The same PNM to SIXEL conversion through the API, for your app or your agent.

terminal
$ cv convert photo.pnm photo.sixel
$ cv convert photo.pnm photo.sixel

Questions.What people ask about PNM to SIXEL.

01OF 04

PBM, PGM and PPM files. Files ending in pnm, ppm, pgm or pbm are all PNM images.

At most 256. An image with more colors is reduced to fit.

No. Only terminals that draw SIXEL graphics can show the picture.

No. It has no options, and the result is one file.

More conversions.Other ways in and out of PNM and SIXEL.