PLT and HP-GL files

Open a .plt plot file without CAD software: convert it to a vector PDF or SVG. The plot stays on your device.

Conversion desk

On this device

Start with a file

Drop your file here or choose one from your device.

PLT · HPGL · HGL · GL2 · HPG · 5 files at a time, free

Its new format

FromPLT

To

Converted on this device. Nothing is uploaded.

Your file's short trip

PLT to PDF

Your file is next.

  1. Read
  2. Write the PDF file
  3. Ready

A .plt file is almost always an HP-GL or HP-GL/2 plot: the pen moves a CAD program would send to a plotter, saved to a file instead. Drop one into the converter above and it comes back as a vector PDF or SVG, at the size it would have been plotted. The file is read in this browser tab and is never uploaded.

Updated · How we test this format

At a glance

File types.plt, .hpgl, .hgl, .gl2, .hpg
LanguagesHP-GL and HP-GL/2, on their own or inside PCL 5, PJL and HP RTL print jobs
Converts toPDF or SVG, both vector
SizeReal-world: one plotter unit is 0.025 mm
Several pagesOne file per page, together in a ZIP, up to 500 pages
Not convertedPostScript, PDF, PCL XL and DM/PL files, PCL text, and raster images
Files at a time5 free; 100 with Pro (coming soon)
UploadsNone: the conversion runs on your device

Which conversion do you need?

The converter above does both. Pick the format under To before you add your files.

What a PLT file is

HP-GL, the Hewlett-Packard Graphics Language, was created by HP in the late 1970s to drive its pen plotters. A plot file is a list of short instructions, each two letters and a few numbers: select a pen, lift it, move it, put it down and draw to a point. Coordinates count plotter units of 0.025 mm, so 40 units make a millimetre and 1,016 make an inch. Plotters and cutters from other makers learned the language too, and it became the usual way to talk to a plotter.

Here is a complete plot. It picks pen 1 and draws a rectangle 100 mm wide and 50 mm tall:

IN;SP1;PA0,0;PD4000,0,4000,2000,0,2000,0,0;PU;

HP-GL/2, the later revision, kept the same instructions and added what large-format printing needed: line widths, colour palettes, Bézier curves and a compact encoding that packs each coordinate into a few printable characters. It's built into PCL 5, the printer language of HP's LaserJets, and HP's DesignJet large-format printers read it alongside HP RTL, a language for raster images.

The .plt extension names the job, not the language. Many .plt files come from a CAD program's plot-to-file option with an HP plotter driver selected; AutoCAD, MicroStation and Allplan can all do it. Sign-making and vinyl-cutting software writes HP-GL for cutters, and pattern software in the garment trade plots markers with it. Engineering and architecture archives hold plot files too, sometimes long after the program that made them has gone. Files named .hpgl, .hgl, .gl2 and .hpg hold the same kind of content.

Versions and variants we read

Other programs write other things under the same name, so we look at what's inside rather than trusting the extension. A .plt that holds PostScript, PDF, PCL XL or DM/PL, another plotter language, is refused with a message, as is a print job with nothing but PCL text in it. Tecplot, the engineering data program, saves its data files as .plt too. Those hold numbers rather than a drawing, and this converter doesn't read them.

What we draw

We follow the instructions the way a plotter would: pen moves and encoded polylines, circles and arcs drawn in short straight chords as the plotter draws them, Bézier curves, rectangles, wedges and filled polygons, hatching, line types, clipping windows, scaling and rotation. A plot with several pages, split by page-advance instructions or form feeds, gives one file per page.

Pens become colours. When a plot doesn't set its own, the HP-GL/2 defaults apply: pen 1 is black, then red, green, yellow, blue, magenta and cyan for pens 2 to 7. Pen 0 is white, which doesn't show on a white page unless the plot gives it another colour. A plot that never selects a pen is drawn with pen 1; a real plotter would draw nothing, which isn't much help. Choose All black under Pens for a monochrome copy.

Line widths are where a plot loses most today: every line is drawn with one line weight, and What changed says how many widths the plot asked for. Labels are set in Helvetica in a PDF and in Arial or a similar sans-serif in an SVG, instead of the plotter's stick font, so they take a little more or less room. Many CAD programs turn text into lines or filled shapes before they plot, and that kind of text comes through exactly.

Some settings aren't reproduced: vertical text, line ends and joins, screened vectors, character fill modes, the hatch anchor, merge control and the old HP-GL character sets. When a plot uses one of them, What changed names it. Raster and PCL fill patterns become a light solid fill. Polygons filled with the non-zero winding rule are filled with the even-odd rule instead, which can turn overlapping parts into holes.

A plot can also scale its drawing to the corners of the paper without saying how big the paper is. Then we assume an A4 sheet, What changed says so, and the size may differ from the original print.

What's preserved, what changes

Measured on our 26 licensed test files: 19 plots converted, 4 of them real plots checked against an independent HP-GL/2 reader.
WhatResult
Lines and filled areasPreserved Drawn as vectors, matching an independent HP-GL/2 reader point for point (within 0.05 mm) in our 4 real test plots: 41,307 lines and 3,093 filled areas.
Encoded polylines (PE)Preserved Decoded in their 7-bit and 8-bit forms: 2,934 in our test plots.
Filled polygons, rectangles and wedgesPreserved Filled in their pen colour: 3,123 in our test plots.
Circles, arcs and Bézier curvesPreserved Drawn as vectors: 25 in our test plots.
Real-world sizePreserved At 1:1 with Drawing size, one plotter unit is 0.025 mm, as on the plotter: a 100 × 50 mm test plot gets a 120 × 70 mm page, its own size plus the 10 mm margin.
Several pagesPreserved Each page becomes its own file, together in a ZIP (1 of our test plots has several pages).
Labels (LB)Approximated Set in Helvetica instead of the plotter's stick font, so text widths can differ slightly (27 labels in our test plots).
Pen widthsApproximated Every line is drawn with one line weight (5 of our test plots set several widths).
Raster and PCL fill patternsApproximated Shown as a light solid fill (1 in our test plots).
Non-zero winding fillsApproximated Filled with the even-odd rule, so overlapping parts can come out as holes (1 in our test plots).
PostScript, PCL text and raster (RTL) filesNot converted Not converted: they hold no HP-GL drawing, or only a raster image (6 of our test files).

Preserved: arrives as it is. Approximated: arrives in a simpler form, as the row describes. Not converted: stays behind.

How we test

The table above is for PDF output; SVG differs only in how the real size is kept. It comes from running the real converter on 26 licensed test files. Of those, 19 are plots, and every one converts to both PDF and SVG. The other 7 are there to test the refusals: 6 hold PostScript, PCL text, DM/PL or raster images, and 1 isn't a plot at all.

Among the plots are 4 real HP-GL/2 files from the test suite of ezdxf, an open-source CAD library with its own HP-GL/2 reader, and we compare our drawing with that reader's point by point. Between them they hold 41,307 lines and 3,093 filled areas, and 100% of their points match within 0.05 mm in both directions; every plot covers exactly the same area. The other 15 are small plots written for this site, each testing a few features: arcs, fills, line types, labels, scaling, rotation, clipping, several pages, and plots wrapped in printer jobs.

These are checks on geometry and completeness, not a pixel-by-pixel comparison. Our tests convert the whole set again on every change to the code, recount the lines and fills of the real plots, and fail if a number moves.

When a PLT won't convert

The file's row tells you when something stops a conversion. Here's what each message means and what to do.

What isn't here, and why

Try it with a sample file

No plot of your own to hand? Download sample-plot.plt (16 KB), an A2 test sheet in HP-GL/2 from the open-source ezdxf library, made with Allplan 2022. It has shapes in three pen colours, a hatch swatch, a solid fill and bold text built from filled shapes. It's MIT-licensed; the sample notes say where it comes from.

Tested on : the sample, converted to PDF, opened in Preview 11.0 on macOS 26.2 as one page at the drawing's size, with every shape, colour, the hatch, the fill and the text in place.

Checked in other software

Last checked on , with every plot in our test set, the pages of the multi-page plot included:

Plans

Free and Pro

The free plan is the real product, not a trial. Pro is for people who convert in bulk, and it isn't open yet.

FeatureFreePro
Single filesFree, no watermark, no waitSame
Files at a timeUp to 5Up to 100
ZIP and folder inputPick the files insteadYes
Large filesWorks; may be slow on some devicesBuilt for them
AccountNone neededOptional
Where files goNowhere: converted on your deviceNowhere: converted on your device
Price$0Week Pass $6 · Pro $7/month or $48/year · coming soon

Privacy

Check it yourself

You don't have to take our word for it. Your browser can show you exactly what this page sends.

  1. Open your browser's developer tools (F12, or Option + Command + I on a Mac) and choose the Network tab.
  2. Convert a file on this page.
  3. Look through the requests. None of them carries your file: the page loads its code once, then the conversion runs in a Web Worker on your device.
  4. For a stronger test, turn off Wi-Fi after the page loads, then convert again. It still works.

The conversion worker runs under its own Content Security Policy, which blocks every network request:

default-src 'none'; script-src 'self'

The page itself may only talk to this site and our cookieless analytics:

connect-src 'self' https://gateway.umami.is