Convert CNC G-code (txt) to pgm

  1. Download and install the latest version of Filestar.

  2. Right click on one or more Txt file(s) on your desktop and select Convert with Filestar.

  3. Type convert to pgm in the search box.

  4. Press Convert.

Or let an AI agent do it: filestarcli -i file.txt -c "convert to pgm" (how).

Let your AI agent convert CNC G-code (txt) to PGM

Claude Code, Codex, Cursor and other agents can do this on your computer with Filestar. Your files stay on your machine.

Install Filestar and add it to your agents:

npm install -g filestar
filestarcli agent install

Then ask your agent:

“Convert the CNC G-code (txt) files in my Downloads folder to PGM”

Or run it yourself:

filestarcli -i file.txt -c "convert to pgm"

Runs on your computer, so your files stay on it. Works on Windows, macOS and Linux. 50 free conversions with the npm install, no account needed.

Can my AI agent convert CNC G-code (txt) to PGM?

Yes. Install the Filestar CLI with npm install -g filestar and your agent can run filestarcli -i file.txt -c "convert to pgm" on your computer, so your files stay on it.

Using Filestar With AI Agents · Download SKILL.md

What is the difference between CNC G-code (txt) and .pgm?

Extension
.txt
.pgm
Format
Text
Binary
Category
CAD
Raster Image
Developer
CNC Machines
Jef Poskanzer
Description
A .txt file that holds G-code is a CNC machining or 3D-printer program saved as plain text; its content (G0/G1 motion words, no binary bytes), not the extension, says it is a program.
A PGM file is a grayscale image file saved in the portable gray map (PGM) format and encoded with one or two bytes (8 or 16 bits) per pixel. It contains header information and a grid of numbers that represent different shades of gray from black (0) to white (up to 65,536). PGM files are typically stored in ASCII text format, but also have a binary representation.
MIME Type
application/x-gcode
image/x-portable-graymap

Convert CNC G-code (txt) To Pgm Today

Get started within minutes