.HPGL

HPGL File

HP-GL Plot File (HP Graphics Language)
Ask a question
QUICK ANSWER

An HPGL file is an HP-GL (Hewlett-Packard Graphics Language) plotter file - a plain-text list of pen-movement commands produced when CAD software plots to file for a pen plotter, vinyl cutter, or laser cutter. It is the same format as .plt and .hpg. To view it, use Free PLT/HPGL Viewer or Inkscape; to convert to PDF or DXF, use ViewCompanion or ABViewer.

Developer: Hewlett-Packard Category: Vector Image Files Open standard MIME: application/vnd.hp-HPGL
OPENS ON Windows macOS Linux Web
Related: .EMZ · .CDR · .ODG · .VSDX

On this page

19k+ extensions indexed
Last reviewed Jul 6, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the HPGL file format?

.hpgl files contain graphical information for a plotter or Hewlett-Packard printer. They are files in HP-GL - Hewlett-Packard Graphics Language - a vector command language first introduced in 1977 with the HP 9872A pen plotter. Since then it has undergone modifications: the more capable HP-GL/2 standard was developed in the 1990s, adding scalable fonts, polylines, and RTL raster extensions, and is still widely supported by HP devices and compatible cutters.

What does an .hpgl file look like?

The HP-GL command stream consists of two-letter mnemonic codes and optional parameters, depending on their type. Commands can be divided into groups:

  • vector: PD - Pen Down, PU - Pen Up, PA - Plot Absolute
  • characters: SS - Select standard character set, CA - Designate alternative character set
  • lines: SP - Select pen, VA - Adaptive velocity
  • digitize: DP - Digitize point, OD - Output digitized point and pen status
  • axes: XT - X axis tick, YT - Y axis tick
  • settings: DF - Set default values, OE - Output error, IN - Initialize

The end of each command is marked by a semicolon. Parameters can have an integer or decimal value, or the form of a character (char).

Device compatibility

Some specific records in HP-GL may be related to a particular device model, so not every file is compatible with every plotter. .hpgl files are plain ASCII text, making them human-readable; their contents can be viewed in any text editor. The HP-GL language succeeds AGL (A Graphics Language), used by HP minicomputers for plotter handling.

The same HP-GL language appears under several interchangeable extensions: .plt, .hpg, .hgl, .gl2, and .prn. For modern interchange, .hpgl files are often converted to SVG or DXF. HP-GL/2 is a strict superset of the original HP-GL, and today the format remains in wide use with vinyl cutters, laser cutters, and pen-cutter machines from Roland, Graphtec, and similar manufacturers.

Security & safety

RISK: LOW

HP-GL .hpgl files are plain-text command streams and are not executable, posing negligible direct risk. Practical pitfalls: a .hpgl from a CAD PostScript/PCL driver may not be true HP-GL - no security issue but the viewer will show nothing useful. Avoid download portals bundling adware under the guise of 'free HPGL viewers'; use the reputable tools above or browser-based converters. Do not upload confidential engineering drawings to unknown online services.

Format details

in a nutshell
FULL NAMEHP-GL Plot File (HP Graphics Language)aka HPGL file, HP-GL/2 plot file
DEVELOPERHewlett-Packardsince HP-GL: late 1970s (HP 9872A plotter, 1977); HP-GL/2: 1990s
MIME TYPEapplication/vnd.hp-HPGL
TYPEPlain-text vector plotter command language (pen-plotter instructions)
STANDARDOpen · royalty-free
This extension is also used by…
  • HP LaserJet PCL plot file (misnamed) - Some CAD print drivers write PCL data to a .hpgl file - content is PCL, not HP-GL; check the first bytes.

Programs that open HPGL files

Windows5 apps
CorelDRAW Paid Import the .hpgl via File > Import > HPGL; edit and re-export as any vector format.
Inkscape Open-source File > Import the .hpgl (HP-GL import plugin); export to SVG/PDF. Also outputs HPGL for cutters.
ABViewer Paid Open the .hpgl; view CAD/HPGL plots and convert to DXF/PDF/SVG/images. Free trial available.
Free PLT Viewer / Free HPGL Viewer Free Open the .hpgl to view and zoom HPGL/HP-GL2 plots; export to BMP/JPG/PNG/TIFF.
ViewCompanion (Standard/Pro) Paid Open the .hpgl to view HP-GL/HP-GL2/PCL/Calcomp plots; export to PDF/TIFF/DXF/SVG. Free trial available.
macOS2 apps
Inkscape Open-source Cross-platform; import HPGL and export SVG/PDF. Native Mac HPGL viewers are scarce.
XnView MP Free Can render some HP-GL vector plots as images; limited compared to a dedicated HPGL viewer.
Linux1 app
Inkscape Open-source Import the HPGL .hpgl and export to SVG/PDF.
Web1 app
Convertio (HPGL/PLT converter) Freemium Upload the .hpgl (use the PLT/HPGL converter) and convert to PDF, SVG, DXF, JPG in-browser.

Technical details

deep spec
EncodingPlain text, ASCII (7-bit); human-readable in any text editor
Command syntaxTwo-letter mnemonic codes (e.g. PD, PU, SP, PA) followed by optional parameters; each command terminated by a semicolon
File signatureNo fixed binary magic number; files typically begin with IN; (Initialize) or a two-letter HP-GL mnemonic; HP-GL/2 streams may start with ESC%-12345X (PJL UEL prefix)
MIME typeapplication/vnd.hp-HPGL (IANA-registered)
Colour modelPen-based; colour specified by pen number via SP (Select Pen) command, not by bit depth
ScalabilityVector; scales to any output size without quality loss; bounded only by plotter/page setup, not pixels
Interchangeable extensions.plt, .hpg, .hgl, .gl2, .prn - all store the same HP-GL command language
VersionsHP-GL (original, late 1970s) and HP-GL/2 (1990s strict superset, adds polylines, scalable fonts, RTL raster extensions)
Typical sizeA few KB to several MB, scaling with drawing complexity rather than image area
Device compatibilitySome commands are model-specific; not all files are compatible with all plotters or cutters
Current useWidely used by vinyl cutters, laser cutters, and pen-cutter machines (Roland, Graphtec, Silhouette, Cricut)
ReleasedHP-GL: late 1970s (HP 9872A plotter, 1977); HP-GL/2: 1990s
Latest versionHP-GL/2 with RTL extensions; language effectively frozen
Open standardYes · royalty-free
Specificationen.wikipedia.org

HPGL conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with HPGL files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about HPGL files.

Frequently asked questions

How do I open an HPGL file?
Use a free HPGL viewer - Free PLT/HPGL Viewer (pltviewer.org), ViewCompanion or ABViewer on Windows - or Inkscape on any platform. It's the same format as .plt and .hpg.
Is .hpgl the same as .plt?
Yes - .hpgl, .plt, .hpg and .hgl are interchangeable extensions for HP-GL/HP-GL/2 plotter files. The same viewers and converters handle all of them.
How do I convert HPGL to PDF?
Open the file in ViewCompanion, ABViewer or the Free PLT Viewer and export to PDF, or use an online HPGL-to-PDF converter (e.g. Convertio). This is the easiest way to print or share a plot.
Why does my HPGL file look like printer garbage in a text editor?
It may not be true HP-GL. If you see '%!PS' it's PostScript; if you see ESC codes and binary data it may be PCL. These need a PostScript/PDF tool, not an HPGL viewer. True HP-GL starts with 'IN;' or two-letter mnemonics.
Can I convert HPGL to DXF or DWG for re-editing in AutoCAD?
Yes, but you get only the geometry (lines, arcs) - not the original drawing's layers or objects. Convert to DXF with ViewCompanion or ABViewer, then open/save as DWG in AutoCAD.
What programs create .hpgl files?
CAD programs like AutoCAD and MicroStation write .hpgl when you 'plot to file' using an HP-GL/2 plotter driver. Vinyl/laser cutter software also exports HP-GL as the cut path.

References

1IANA - MIME application/vnd.hp-HPGLwww.iana.org
2Wikipedia - HP-GLen.wikipedia.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.CRDOWNLOADChrome Partial Download File
4.PARTPartial Download File
5.MDMarkdown Document
6.RPMSGRestricted Permission Message
7.NOMEDIAAndroid No-Media Marker File
8.PRO6XProPresenter 6 Bundle File
9.PRDXSoftMaker Presentations Document
10.EXEWindows Executable (Portable Executable)

Related extensions

.EMZWindows Compressed Enhanced Metafile
.CDRCorelDRAW image / drawing
.ODGOpenDocument Graphics (Drawing)
.VSDXMicrosoft Visio Drawing (2013+)
.AIAdobe Illustrator Artwork
.EPSEncapsulated PostScript

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z