XWD to PNG Converter

Add an .xwd screen grab and get a PNG with exactly the same pixels, lighter and ready for any image app.

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. The dump's header says how the screen kept its colors
  2. Each pixel is read that way
  3. The pixels are packed into a PNG

What it does

Either byte order

Some computers write a dump's numbers high byte first, others low byte first. The header says which, and FluffyBench reads both; our samples had one of each.

Limits A grab that stores its rows shifted sideways, which its header records as an x offset, is refused.

Which screen grabs open here?

Grabs from full-color, 256-color and black-and-white screens. Our full-color and 256-color ones came through without a pixel changed.

What's in an .xwd, and why does the screen matter?

An .xwd is what the xwd command saves when it grabs a window on an X screen: a header that says how that screen kept its colors, then the pixels just as the screen held them. So what FluffyBench has to read depends on the screen the grab came from.

A screen limited to 256 colors keeps each pixel as a number, and the dump carries the table saying which color each number stands for. FluffyBench looks every pixel up in that table. Our 256-color dump of the Earth came out with all 50,176 pixels matching, in Chromium and in Firefox.

A full-color screen keeps red, green and blue in every pixel, and the header says where each one sits. FluffyBench reads those in 16, 24 and 32 bits a pixel, and our full-color dump of a mountain photo, 55,296 pixels, matched to the last one as well.

A black-and-white screen keeps one bit a pixel. Those dumps open too, but without a color table FluffyBench draws each 1 as white, and ours marked its dark pixels with 1, so it came out as a negative.

Opening the screen grab as a PNG

  1. Choose images, then open the .xwd dump.

  2. Convert 1 to PNG reads the grab.

  3. Save the PNG from the download arrow under the picture.

    The finished PNG of the mountain photo grab on its card, with the download arrow outlined.
    The finished PNG of the mountain photo grab on its card, with the download arrow outlined.

Need something smaller to send?

It's going into an email or a chat, and nobody will edit it.

FluffyBench's XWD to JPG converter

Much lighter than the PNG, at the price of slightly rounded colors.

Search FluffyBench