Skip to content

.SGM file extension

To open .SGM files on Windows, open the .SGM file in a plain text editor to inspect the markup (use an editor that can handle large files if needed).

To open a .SGM file, first try a plain text editor to view the markup, then use an SGML tool (such as OpenJade) if you need proper processing or conversion. On mobile, .SGM usually won’t render as a formatted document—transfer it to a desktop for reliable handling.

Last updated: June 10, 2026

Open on your device

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

How to open .SGM files

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

Windows

  1. Open the .SGM file in a plain text editor to inspect the markup (use an editor that can handle large files if needed).
  2. If you need formatted output, use an SGML processing toolchain on a desktop (for example, run an SGML processor such as OpenJade in a suitable environment) to transform it to HTML/text/PDF per your project’s DTD/stylesheet.
Full Windows guide

Mac

  1. Open the .SGM file with a plain text editor to view/edit the SGML markup.
  2. For conversion or rendering, process it using an SGML toolchain available on your system (for example, OpenJade) with the appropriate DTD/stylesheet from the document source.
Full Mac guide

Linux

  1. Open the .SGM file in a text editor to review the SGML markup and confirm it is readable plain text.
  2. If you need conversion, use an SGML processor such as OpenJade and provide the correct catalog/DTD and (if applicable) DSSSL stylesheet to generate your desired output.
Full Linux guide

iOS

  1. iOS typically won’t “render” SGML; use Files to share the .SGM to a text-editor app to view the raw markup, or transfer it to a desktop to process/convert it with SGML tooling.
Full iOS guide

Android

  1. Android typically won’t render SGML; open it in a text editor to view raw markup, or move it to a desktop to process/convert it with SGML tooling.
Full Android guide

Security notes

  • SGM/SGML is usually plain text, but it can reference external entities and external files; only process SGML from sources you trust, especially when using automated toolchains.
  • Be cautious when running SGML processors on untrusted documents: complex markup or entity expansion can trigger excessive resource usage (CPU/memory) in parsers.
  • If a workflow requires fetching external DTDs/entities, prefer local, vetted copies rather than letting tools resolve external references from unknown locations.

Can't open this file?

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

Common reasons

  • The file opens as plain text instead of a formatted document
  • Processing fails with DTD/catalog or entity errors
  • Wrong file association or incorrect MIME type detection
  • Character encoding looks wrong (garbled symbols)

Fix steps

  1. Confirm whether you were supposed to receive additional files (DTD/catalog and any DSSSL/other stylesheet) from the sender or repository.
  2. Use an SGML processor (for example, OpenJade) to transform it into a viewable format such as HTML or text, using the correct DTD/stylesheet.

Recover a deleted or lost .SGM file

If the file was deleted by mistake or the drive was formatted, data recovery software may be able to get it back. Stop writing to that drive right away, because new data can overwrite what you want to recover.

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

What is a .SGM file?

.SGM typically denotes an SGML document, a markup language standardized as ISO 8879. SGML files are plain-text markup that can be validated and transformed with SGML processors; they are often used in structured documentation and publishing workflows. The extension is closely associated with SGML and is commonly seen alongside .sgml.

Background

SGML (Standard Generalized Markup Language) is an ISO standard (ISO 8879) for describing the structure of documents using markup. A .SGM file is generally just text containing SGML markup; how it “renders” depends on the associated DTD and any stylesheets/tooling used by a particular workflow.

In practice, .SGM appears in publishing and technical documentation pipelines where documents are validated and transformed into other formats. Rather than being a single “viewer format,” SGML is usually processed by command-line or editorial systems that understand SGML, sometimes converting it into HTML, XML, or print-ready output.

On Linux and other desktops, MIME databases often map .sgm/.sgml to SGML media types. For interchange and labeling, there are registered SGML media types, and RFC 1874 describes when to use text/sgml versus application/sgml.

Common MIME types: text/SGML

Other meanings of .SGM

The extension .SGM is used by several programs. Besides the file type described on this page, it can also stand for:

  • VisualBoyAdvance Saved Game
  • Starpoint Gemini 2 Mod Package

Further reading

Authoritative resources for more details on the .SGM format.

Common .SGM issues

The file opens as plain text instead of a formatted document

SGM/SGML is markup; without the associated DTD and processing pipeline, most apps can only show it as raw text.

  1. Confirm whether you were supposed to receive additional files (DTD/catalog and any DSSSL/other stylesheet) from the sender or repository.
  2. Use an SGML processor (for example, OpenJade) to transform it into a viewable format such as HTML or text, using the correct DTD/stylesheet.

Processing fails with DTD/catalog or entity errors

Many SGML documents reference external identifiers, entities, and DTDs; if those resources aren’t available locally, tools may error out.

  1. Ask for or locate the required DTD, entity files, and catalog used by the document’s workflow.
  2. Configure your SGML tool with the correct catalog/paths and re-run the transformation/validation.

Wrong file association or incorrect MIME type detection

Some systems may not correctly associate .sgm with SGML, or may treat it as generic text depending on MIME database/configuration.

  1. Manually choose a text editor or SGML-capable tool to open the file.
  2. On Linux desktops, ensure your shared MIME database recognizes .sgm as SGML and update MIME caches if your environment supports that.

Character encoding looks wrong (garbled symbols)

SGML files may not be UTF-8; if the editor guesses the wrong encoding, text can display incorrectly.

  1. Try reopening the file in a text editor that lets you choose the encoding explicitly.
  2. Check the document header or accompanying workflow documentation for the expected encoding.

FAQ

Is .SGM the same as .SGML?

Often, yes in practice: both extensions are commonly used for SGML documents. The content is typically SGML markup; the extension choice varies by workflow.

What MIME type should SGML use?

RFC 1874 defines SGML media types and IANA lists them, including text/sgml and application/sgml. Which is appropriate depends on whether the content is intended to be human-readable text or treated as a generic application payload.

Can I convert .SGM to HTML or another format?

Usually yes, but conversion typically requires the document’s DTD/catalog and any stylesheet rules used by the toolchain. Tools like OpenJade can apply DSSSL stylesheets to SGML to produce other outputs.

Will my phone open .SGM files as documents?

Most mobile apps won’t render SGML as a formatted document. You can view it as plain text, but for correct processing or conversion you’ll typically need a desktop SGML toolchain.

Similar file extensions

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

Did this guide help?