For PHP & libgd developers · Free online
GD Image Converter: Turn .GD Files into PNG or JPG
A GD file is the internal image format of libgd, the graphics library behind PHP's image functions. Almost nothing else can open one. This free GD image converter reads the .gd file and saves it as a PNG or JPG you can view, share or drop into a design tool, with no PHP setup on your machine.
Drop any file here or browse
GD files · Up to 20 files at once
Files are encrypted and auto-deleted within 24 hours.
- Instant conversion
- 100% private
- No registration
- All formats
Supported conversions
Convert GD to 3 image formats
Pick a format to open its converter. You can also turn other formats into GD.
All formats 3
- JPG to GDUniversal photo format
- PNG to GDLossless, keeps transparency
- JPEG to GDSame as JPG, widely supported
How it works
How the GD image converter works
You don't need a server, a PHP install or a single line of code.
-
Step 1
Add your .gd file
Click Choose files or drag the file in. You can drop up to 20 GD images at once, which helps when a script has written out a whole folder of them.
-
Step 2
Pick PNG or JPG
PNG keeps the image exactly as libgd stored it. Go with JPG only if you need a lighter file for a preview or an email.
-
Step 3
Run the conversion
The converter decodes the raw GD pixel data and writes the new file. Small sprites and thumbnails finish in seconds.
-
Step 4
Save the image
Click Download, or Download all for a batch. Your files are deleted from our servers within 24 hours.
FAQ
Questions developers ask about GD files
Short answers, written for people who found a .gd file and want to know what it is.
What is a GD file?
A GD file is an image saved in the native format of libgd, the open-source graphics library that PHP uses for its image functions. It stores pixel data with almost no compression, so PHP can load it very quickly. It was never designed for sharing, which is why image viewers don't recognize it.
How do I open a .gd image file?
Upload it to this GD image converter and save it as PNG or JPG, and any viewer will open the result. Developers can also load it in PHP with imagecreatefromgd() and output a PNG with imagepng(). If you're wondering what program opens GD files, the honest answer is almost none, so to open a .gd file without PHP, converting is far quicker.
How do I convert PNG to GD?
In PHP, load the PNG with imagecreatefrompng() and save it with imagegd(). That is the usual way GD files are made, as a cache step inside a script. Check the converter box above for a GD output option; if it isn't listed for your file type, the PHP route is the reliable one.
Is GD the same as GD2?
No. Both come from libgd, but GD stores the whole image as one uncompressed block, while GD2 splits it into chunks that can be compressed with zlib. That makes GD2 files smaller and lets a script read part of an image. PHP reads them with imagecreatefromgd() and imagecreatefromgd2() respectively.
Can I convert GD to JPG without software?
Yes. This works as a GD to JPG converter online: open this page in any browser, upload the .gd file, choose JPG and click Convert. Nothing is installed on your computer, and there's no sign-up. It works the same on Windows, Mac, Linux, Android and iPhone.
Why A2Z Converter
A simple way to read libgd images
Most image tools have never heard of GD. This one was built to handle it, without asking you to write code or create an account.
Convert a GD fileReads the libgd format
The converter understands the GD header and palette layout, so your image comes out with the right size and colors.
Batch whole cache folders
Drop up to 20 .gd files in one go and collect them with Download all.
No PHP on your machine
Skip the local server and the imagecreatefromgd() test script. Upload, convert and you're done.
No one sees your files
Files travel over an encrypted connection and are deleted automatically within 24 hours.
Desktop or mobile
Use it on Windows, Mac, Linux, Android or iPhone. A browser is all you need.
Real people answer
Stuck on an odd file? Send it our way and you'll hear back within 24 hours.
About the libgd image format
GD is a raw image format created for libgd, the C graphics library first written by Thomas Boutell and later adopted by PHP. A .gd file holds a short header with the width and height, then the pixels, either as palette indexes or as true-color values. Because nothing needs to be decompressed, a PHP script can read it back almost instantly.
That speed is the only reason the format exists. Developers sometimes cache generated images as .gd files, or find them left behind in an old project. Outside libgd, though, no browser, phone or photo app will open them, and the files are usually far larger than the PNG they came from.
Converting to PNG gives you an exact copy you can view anywhere. JPG is fine for quick previews. As a GD file converter it works one way best: convert GD to PNG or JPG. If you need the reverse, image to GD, it is normally done inside PHP itself, since a GD file is only useful to a script that reads libgd's format.
A2Z Converter is a free online file converter for images, PDFs and documents.