HDR to PGM Converter

HDR to PGM conversion — browser-based, instant

Drop files here. 1 GB maximum file size or Sign Up
to
Facebook Amazon Microsoft Tesla Nestle Walmart L'Oreal

Format Versatility

Beyond PGM, Convertio supports dozens of output formats for your HDR files. One tool handles all your conversion needs.

Data Safety First

All uploaded HDR data is wiped after processing. Converted PGM results expire from the server within 24 hours automatically.

Faithful Rendering

HDR imagery converts to PGM with careful attention to color and detail. The output faithfully represents the source material.

How to convert HDR to PGM

1

Select files from Computer, Google Drive, Dropbox, URL or by dragging it on the page.

2

Choose pgm or any other format you need as a result (more than 200 formats supported)

3

Let the file convert and you can download your pgm file right afterwards

About formats

HDR (also known as RGBE or Radiance HDR) is a high-dynamic-range image format created by Greg Ward Larson as part of the Radiance lighting simulation system, developed at Lawrence Berkeley National Laboratory starting in 1985 with the HDR format emerging around 1989. The format stores floating-point RGB pixel values using a compact 32-bit-per-pixel encoding called RGBE (Red, Green, Blue, Exponent): three 8-bit mantissa bytes share a single 8-bit exponent, representing luminance values across a range of roughly 76 orders of magnitude while keeping file sizes comparable to standard 24-bit images. HDR files begin with a text header containing rendering and exposure metadata, followed by the RGBE pixel data compressed with a scanline-oriented run-length encoding scheme. The format captures the full luminance range of real-world scenes — from deep shadows to direct sunlight — enabling physically accurate lighting calculations, tone mapping to different display conditions, and post-capture exposure adjustment without the clipping artifacts inherent in 8-bit formats. One advantage is the format's foundational role in HDR imaging: Radiance HDR pioneered the concept of storing real-world luminance values in image files, and the .hdr format became the standard for light probe images and environment maps used in image-based lighting across the 3D rendering industry. The format's compact encoding is another practical strength — the RGBE scheme provides far more dynamic range than 8-bit formats while using only 33% more storage per pixel, a favorable tradeoff that made HDR practical on storage-limited systems of the late 1980s. HDR files are supported by Photoshop, GIMP, ImageMagick, Blender, and all major 3D renderers.
Developer: Greg Ward Larson
Initial release: 1989
PGM (Portable Graymap) is the grayscale member of the Netpbm image format family, created by Jef Poskanzer in 1988 as part of the Pbmplus toolkit for Unix systems. PGM stores single-channel intensity images where each pixel holds a gray value from 0 (black) to a user-specified maximum (typically 255 for 8-bit or 65535 for 16-bit). The format exists in ASCII (magic number P2), where pixel values are written as decimal text numbers separated by whitespace, and binary (magic number P5), where values are stored as raw bytes. Both variants begin with a header specifying the magic number, width, height, and maximum gray value. PGM was designed as the grayscale intermediate in Netpbm's convert-process-convert pipeline philosophy: source images from any format are converted to PGM, processed using Netpbm's extensive command-line tool library, then converted to the target format. One advantage is format transparency — the ASCII variant makes image data directly readable by humans and trivially processable by text tools like awk and grep, invaluable for debugging and education. The scientific and computer vision community's adoption is another strength: PGM's straightforward single-channel representation makes it a natural format for image analysis algorithms, and many academic papers and course materials use PGM examples. The format is supported by ImageMagick, GIMP, and countless image processing libraries, and remains standard input for many research tools and benchmarks.
Developer: Jef Poskanzer
Initial release: 1988

Frequently Asked Questions

Why convert HDR to PGM?

When extracting panoramas or environment maps for reference, HDR to PGM makes them usable outside rendering software.

What programs open PGM files?

GIMP, IrfanView, ImageMagick, and Netpbm suite handle PGM grayscale images

How many HDR files can I convert at once?

You can upload multiple HDR files in one session. Each converts to PGM separately, and all results are downloadable upon completion.

How fast is HDR to PGM conversion?

Most conversions complete within seconds. Larger or more complex files may take slightly longer, but processing happens on fast cloud servers.

Will the converted PGM keep the original resolution?

Yes — the default conversion preserves the original pixel dimensions

Are uploaded HDR files stored permanently?

No. Source files are deleted immediately after processing, and converted outputs are purged from servers within 24 hours automatically.