PGM to HDR Converter

Turn your PGM files into HDR format with ease online

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

Reliable Output

Count on accurate results from your PGM to HDR conversion. The converter faithfully reproduces your original content.

Cross-Platform Support

The converter is platform-independent. Whether you use a PC, Mac, or phone — PGM to HDR conversion works everywhere.

Server-Side Conversion

PGM to HDR conversion happens in the cloud. Your computer or phone is not burdened by any processing work whatsoever.

How to convert PGM to HDR

1

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

2

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

3

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

About formats

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
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

Frequently Asked Questions

Why convert PGM to HDR?

Converting to HDR provides high dynamic range lighting, making your content more versatile for sharing and practical use.

What programs open HDR files?

HDR files are supported by Photoshop, GIMP, Luminance HDR, Blender. Pick whichever application suits your operating system and workflow.

Do I need to create an account to convert?

No account is needed for standard conversions. Just upload your PGM file, pick HDR, and download the result.

Does the converter work on mobile devices?

The converter runs in your browser, so it works on mobile devices, tablets, and computers without any app installation.

Will image dimensions change during conversion?

No — the converter keeps the same image size. Dimensions only change if you explicitly set resize options.

Is the conversion process secure?

Security is built in — source PGM files and converted HDR outputs are automatically removed from servers after processing.