.rng XML document

Text & source code

MIME typeapplication/xml
DescriptionXML document
AcronymXML – eXtensible Markup Language
CategoryText & source code
Signature (magic bytes)3C 3F 78 6D 6C (<?xml)
Based ontext/plain
Other extensions.xbl, .xml, .xsd

Frequently asked questions

What is a .rng file?

A .rng file is a “XML document” (MIME type application/xml). XML stands for eXtensible Markup Language.

How do I open a .rng file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .rng file?

By the bytes at the start of the file, the signature (magic bytes): 3C 3F 78 6D 6C (<?xml). On Linux and macOS, file --mime-type example.rng checks the real type regardless of the extension.

Which format is .rng based on?

Technically a .rng file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.

Which MIME type belongs to .rng?

The MIME type is application/xml. In the Apache web server: AddType application/xml .rng; in nginx: types { application/xml rng; }.

Nearby entries