SGML

sgml icon

IETF SGML document

File type: Document file

An IETF SGML document is a structured document encoded in Standard Generalized Markup Language (SGML). The .sgml file extension identifies this text-based document source.

Found 2 different file type records with the same sgml filename suffix.

What is sgml file?

File type category:
Document file

Date updated: November 19, 2026

SGML is an international standard for defining markup languages and structuring documents so their content is not tied to a particular device, system, or application. An IETF SGML document is text-based, rather than a distinct binary format, and its markup describes the document's structure.

SGML is a mature standard, not a format that is continually revised. HTML was historically defined as an SGML application, while XML was designed as a simplified subset of SGML. SGML is less commonly used for new documents than XML.

Media-type labels associated with SGML include text/sgml, text/x-sgml, application/sgml, and application/x-sgml.

How to open sgml file?

Open the .sgml file in a plain-text editor to read its markup. To interpret or validate its structure, use an SGML-aware parser with the document's DTD; a text editor alone does not validate the document.

How to convert sgml file?

Conversion is possible with an SGML-aware tool when the document's DTD is available. Conversion to XML or another structured format depends on that tool supporting the source DTD; simply changing the extension will not convert the document. Exporting as plain text is possible, but removes the markup.

Technical details

MIME types
  • text/sgml

Encoded Archival Description Document

File type category:
Document file

Date updated: October 2, 2026

Encoded Archival Description is a standard for encoding archival finding aids, maintained by the Library of Congress in partnership with the Society of American Archivists.

The original EAD standard used SGML, while later EAD versions also support XML-based encoding. An EAD document can contain descriptive, administrative and structural information such as collection scope, arrangement, access conditions and descriptions of components within a collection.

The EAD definition conforms to SGML/XML specifications associated with ISO 8879 and has been tested with a wide variety of existing SGML/XML software. Its DTD includes switches for turning off features used only in SGML applications and enabling features used in XML applications.

How to open sgml file?

An EAD SGML document can be opened as text in a text editor or in an SGML-aware editor. To validate or process it correctly, the editor or archival system may also need the EAD DTD and any referenced SGML declaration.

Because SGML and XML are not identical, a standard XML editor may display the file as text without validating it. Archival collection-management and finding-aid systems that support EAD can provide more useful viewing and processing.

How to convert sgml file?

An EAD SGML document can be converted to an XML-based EAD document with an SGML/XML processing tool and the appropriate EAD DTD or transformation. The result should be validated against the target EAD definition.

Conversion to another archival format is normally performed by an archival system or a custom transformation, because the document's collection hierarchy and descriptive elements need to be mapped to the target format.

Related file extensions