Do You Need Text Recognition? Recognize text

PGM to DOCM Converter

Change PGM to DOCM — online document converter

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

Quality Preserved

Your original PGM content is preserved in the DOCM result. The conversion process does not introduce unwanted artifacts.

Any Device, Any OS

Desktop, laptop, tablet, phone — the converter handles PGM to DOCM equally well on every device and operating system.

Cloud Processing

Conversion runs entirely on our servers — your device handles nothing. Convert PGM to DOCM without slowing down your computer.

How to convert PGM to DOCM

1

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

2

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

3

Let the file convert and you can download your docm 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
DOCM is a macro-enabled document format for Microsoft Word, introduced with Office 2007 as part of the Office Open XML family. Structurally identical to DOCX — a ZIP archive containing XML parts for document content, styles, themes, and media — DOCM adds the ability to store and execute VBA (Visual Basic for Applications) macro code within the document. The separate .docm extension was a deliberate security measure: users and administrators can distinguish macro-containing files by extension alone, and group policies can restrict macro-enabled formats while allowing standard DOCX documents to open freely. DOCM files store VBA projects in a vbaProject.bin stream within the ZIP package alongside the same XML document content used by DOCX. Macros in Word documents enable automated report generation, custom form processing, document assembly from templates and data sources, and integration with external systems. One advantage is document-level automation — a DOCM file can include routines that populate content from databases, enforce formatting rules, validate fields before submission, or generate derivative documents automatically. The format preserves full compatibility with the OOXML specification, so all standard Word features — styles, tracked changes, comments, embedded media — work identically to DOCX. DOCM is supported by Microsoft Word on Windows and macOS, with macro execution limited to the desktop application.
Developer: Microsoft
Initial release: January 30, 2007

Frequently Asked Questions

Why convert PGM to DOCM?

A DOCM file is easier to share and print than raw PGM data — macro-enabled Word document makes distribution seamless.

What programs open DOCM files?

Use Microsoft Word with macros enabled to open DOCM files. The format is well-supported across desktop and mobile platforms.

Is batch conversion to DOCM supported?

Upload multiple files at once and each PGM file will be converted to its own DOCM document independently.

Does this work on mobile?

It works on any device with a browser. No app needed — just upload your PGM file and get the DOCM result.

Will my content be preserved in the DOCM output?

Yes — the PGM content is placed within the DOCM file, so recipients see your data when they open the document.

Can I edit the resulting DOCM file?

Yes, if you open the DOCM file in a compatible editor. You can modify content, reformat, or extract elements as needed.