.HGL file extension

To open .HGL files on Windows, install an HPGL-compatible viewer/editor (examples listed by FileInfo include ABViewer and ViewCompanion; Canvas is also listed).

To open a .HGL file, use an HPGL-compatible viewer/editor such as ABViewer or ViewCompanion, or an HPGL-capable graphics application like Canvas. If your device cannot open it, transfer the file to a desktop system and open it there with an HPGL viewer.

Last updated: May 5, 2026 · Reviewed by Julian Stricker

Open on your device

Choose your operating system for a dedicated step-by-step opening guide.

How to open .HGL files

Use these platform-specific instructions to open .HGL files safely.

Windows

  1. Install an HPGL-compatible viewer/editor (examples listed by FileInfo include ABViewer and ViewCompanion; Canvas is also listed).
  2. Right-click the .HGL file → Open with → choose the HPGL viewer/app you installed.
  3. If the output looks wrong, try another HPGL viewer (different tools can interpret HPGL variants differently).
Full Windows guide

Mac

  1. Install an HPGL-capable application (FileInfo lists Canvas as a program that can open .HGL).
  2. Control-click the .HGL file → Open With → select the installed application.
Full Mac guide

Linux

  1. Try opening the file with an installed vector/CAD viewer that supports HPGL (support varies by distribution and apps).
  2. If it does not open, use your desktop’s “Open With…” and pick an HPGL-capable viewer you have installed; Linux file associations are typically managed via the shared-mime-info system.
Full Linux guide

iOS

  1. There is no common built-in iOS viewer for HPGL/HGL; if it won’t preview, transfer the file to a desktop and open it with an HPGL viewer (e.g., ABViewer/ViewCompanion/Canvas as referenced by FileInfo).
Full iOS guide

Android

  1. Android typically does not include reliable HPGL/HGL viewing by default; if no app can open it, transfer the file to a desktop and open it with an HPGL viewer (as referenced by FileInfo).
Full Android guide

Security notes

  • .HGL is typically a plotting-command format (often text), not a macro-enabled office document; however, malformed or maliciously crafted files can still trigger bugs in viewers/parsers—open untrusted files only in reputable, updated HPGL software.
  • Avoid changing the extension to a different type to “make it open”; use an HPGL-capable viewer instead to reduce the risk of opening it in inappropriate software.
  • If a website or email prompts you to run an installer or script to view an .HGL, treat it as suspicious—use established HPGL viewers from known vendors instead.

Recommended antivirus software

Scan files before opening them. These antivirus tools help protect against malware and viruses.

We may earn a commission when you use affiliate links. This supports our free file extension guides.

Can't open this file?

These are the most common causes and fixes when .HGL files fail to open.

Common reasons

  • The file opens as plain text or gibberish
  • Nothing happens or the OS asks what app to use
  • The drawing renders incorrectly (wrong scale, missing text, strange lines)
  • The file is corrupted or incomplete

Fix steps

  1. Open the file in an HPGL viewer/editor (e.g., ABViewer or ViewCompanion as listed by FileInfo).
  2. If you only need to inspect commands, use a text editor; if you need the drawing, use an HPGL renderer.

What is a .HGL file?

.HGL commonly represents HP Graphics Language (HP-GL/HPGL) data: text-based commands (often two-letter instructions) that control plotting of vector lines, labels, and other primitives. These files are not “documents” like PDF/DOCX; they are plotting instructions that must be interpreted by HPGL software or a compatible device. An official media type exists for HGL: text/vnd.hgl.

Background

HGL is most commonly associated with HP-GL (Hewlett-Packard Graphics Language), a command language designed for plotters and later used in some printing/plotting workflows. Instead of storing a picture as pixels, it stores drawing instructions that a plotter-like renderer can execute to reproduce the drawing as vector output.

In practice, .HGL files are encountered in CAD, engineering, mapping, and technical drawing pipelines, where plotter output (or plotter-like output) is required. Many viewers can render HPGL instructions on-screen, and some tools can convert HPGL to other vector or document formats.

On desktop systems, file-type handling may rely on MIME detection and filename globs (e.g., *.hgl) as used by Linux desktop environments through the shared-mime-info database. Where file associations are missing, choosing an HPGL viewer manually is usually the fastest way to open the file.

Common MIME types: text/vnd.hgl

Further reading

Authoritative resources for more details on the .HGL format.

Common .HGL issues

The file opens as plain text or gibberish

Many .HGL files are HPGL command text; a text editor will show the plotting commands rather than a rendered drawing.

  1. Open the file in an HPGL viewer/editor (e.g., ABViewer or ViewCompanion as listed by FileInfo).
  2. If you only need to inspect commands, use a text editor; if you need the drawing, use an HPGL renderer.

Nothing happens or the OS asks what app to use

Your system likely has no file association for the HGL/HPGL type or no HPGL-capable application installed.

  1. Install an HPGL-capable application (examples listed by FileInfo include ABViewer, ViewCompanion, and Canvas).
  2. Use “Open with…” to select that application and optionally set it as the default for .hgl files.

The drawing renders incorrectly (wrong scale, missing text, strange lines)

HPGL can have variants and device-specific expectations; different viewers may interpret commands, scaling, and fonts differently.

  1. Try opening the same file in a different HPGL viewer (interpretation differs across tools).
  2. If you know the intended plotter/printer settings, adjust scaling/units and page setup options in the viewer if available.

The file is corrupted or incomplete

Truncated downloads or partial exports can break HPGL command streams, leading to incomplete drawings or read errors.

  1. Re-download or re-export the .HGL file from the original source.
  2. Confirm the file size matches the sender’s copy and try opening with a second HPGL viewer to rule out app-specific issues.

FAQ

Is .HGL the same as HPGL/HP-GL?

In most cases, yes—.HGL commonly contains HP Graphics Language (HPGL/HP-GL) plotter commands used to render vector drawings.

Why won’t my phone open a .HGL file?

HPGL/HGL is specialized for plotting/rendering and isn’t commonly supported by built-in mobile viewers. The most reliable approach is to open it on a desktop with an HPGL viewer.

Can I convert .HGL to PDF or an image?

Often yes, but the method depends on the HPGL software you use. Open the file in an HPGL-capable viewer/editor and look for export/print-to-PDF options.

What is the official MIME type for .hgl?

An official media type exists: text/vnd.hgl (as listed in the IANA Media Types registry).

Similar file extensions

Compare related formats in the same category to find the right tool faster.