RAS to PNG Converter

Add a Sun Raster .ras file and get a PNG with every pixel, and every color, where it belongs.

FluffyShield Protected workspace
FluffyShield

Isolated workspace: other page scripts can't read your files. How FluffyShield works

Free · No upload · No sign-up · No usage quotas

PNG options here: browser or advanced encoder; RGBA, RGB, grayscale or indexed color; 8- or 16-bit; Fast, Balanced or Maximum compression; interlacing. Which PNG settings are worth changing?

How it works
  1. Your browser reads the Sun Raster header
  2. Each pixel's colors are put in order
  3. The pixels are saved as a PNG

What it does

Packed files too

Sun Raster files squeezed with Sun's own run-length packing open like plain ones.

Changed pixels in our packed Earth's PNG: 0 of 50,176 pixels changed

256-color files

A 256-color file carries its own list of colors, and every pixel is drawn from it, so the picture keeps the colors it was saved with.

Limits A Sun Raster with 16-bit color, or one cut short, is refused; so is a color list stored in Sun's rare raw form.

Will a Sun Raster file keep its colors as a PNG?

Yes, whichever of Sun's two color orders the file uses.

Will the colors come out right?

Sun Raster was the picture format of Sun's Unix workstations, and .ras files still turn up in old screenshots, icons and image archives. Turning one into a PNG with every color right comes down to reading its pixels the right way round.

A full-color Sun Raster usually stores each pixel blue first, then green, then red, the reverse of the order most formats use. Sun later added a second kind that stores red first, and a number in the header says which kind a file is. A reader that ignores it swaps red and blue in one kind or the other, so a blue sky comes out orange.

FluffyBench reads that number and puts each color where it belongs. We saved one photo of Lassen Peak both ways, and the two files gave one and the same PNG, with 0 pixels changed out of 55,296 pixels against the original photo.

Converting a .ras, or a folder of them

  1. Open your .ras with Choose images. A whole folder of them works the same way.

  2. Press Convert 1 to PNG; with several files the button counts them.

  3. Download the PNG with the arrow on its card.

    The finished PNG of a 256-color Sun Raster on its card, its size before and after, with the download arrow outlined.
    The finished PNG of a 256-color Sun Raster on its card, its size before and after, with the download arrow outlined.

Does the picture need to be exact, or just small?

The pictures are photos going into an email or a web page.

FluffyBench's RAS to JPG converter

A JPG is a fraction of the size, with changes too small to see.

An old Sun program or an emulator needs the picture back as a .ras.

FluffyBench's RAS converter

It writes Sun Raster files as well as reading them.

Search FluffyBench