What is MIME type "model/vrml"?

A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.

model/vrml is the MIME type for files based on the Virtual Reality Modeling Language. These files, like WRL and VRML, describe 3D scenes using text. The compressed version often uses WRZ.

For more details, check out the VRML article on Wikipedia.

Associated file extensions

Usage Examples

HTTP Header

When serving content with this MIME type, set the Content-Type header:


    Content-Type: model/vrml    
  

HTML

In HTML, you can specify the MIME type in various elements:


    <a href="file.dat" type="model/vrml">Download file</a>    
  

Server-side (Node.js)

Setting the Content-Type header in Node.js:


    const http = require('http');    
    
    http.createServer((req, res) => {    
      res.setHeader('Content-Type', 'model/vrml');    
      res.end('Content here');    
    }).listen(3000);    
  

Associated file extensions

FAQs

Do modern web browsers support model/vrml natively?

No, most modern browsers (Chrome, Firefox, Edge) do not support model/vrml natively anymore. To view these files online, you typically need to use a JavaScript-based library like X_ITE or X3DOM that parses the VRML and renders it using WebGL, or install a specialized legacy plugin.

How do I configure Apache to serve VRML files correctly?

To ensure browsers recognize the file correctly, add the following line to your .htaccess file or main configuration: AddType model/vrml .wrl .vrml. If you are serving compressed .wrz files, you may also need to configure the Content-Encoding header to gzip.

What is the difference between .wrl and .wrz extensions?

The .wrl extension typically contains uncompressed, human-readable VRML text code. The .wrz extension is a standard VRML file that has been compressed using gzip to reduce download times. Both usually utilize the model/vrml MIME type, though .wrz requires proper encoding headers.

Why does my browser download the .wrl file instead of displaying the 3D model?

This happens if the web server is sending the file as application/octet-stream or text/plain instead of model/vrml, or if your browser lacks a plugin/viewer to handle the content. You should check the server's MIME settings and ensure you have a compatible viewer installed.

Is model/vrml still the standard for 3D on the web?

No, VRML has largely been superseded by X3D (Extensible 3D) and modern transmission formats like glTF. While legacy systems still use model/vrml, new development projects usually prefer glTF for efficiency or X3D for feature richness.

Can I edit model/vrml files with a text editor?

Yes, because the core structure of a VRML file is plain text. You can open and modify .wrl files in Notepad, Vim, or VS Code to tweak coordinates or colors manually, which is useful for debugging 3D scene graphs.

How do I add model/vrml support to Nginx?

In your Nginx configuration (usually inside nginx.conf or a mime.types file), add the following entry within the types block: model/vrml wrl vrml;. Restart the server to apply the changes.

General FAQ

What is a MIME type?

A MIME (Multipurpose Internet Mail Extensions) type is a standard that indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.

MIME types are important because they help browsers and servers understand how to process a file. When a browser receives a file from a server, it uses the MIME type to determine how to display or handle the content, whether it's an image to display, a PDF to open in a viewer, or a video to play.

MIME types consist of a type and a subtype, separated by a slash (e.g., text/html, image/jpeg, application/pdf). Some MIME types also include optional parameters.

How do I find the MIME type for a file?

You can check the file extension or use a file identification tool such as file --mime-type on the command line. Many programming languages also provide libraries to detect MIME types.

Why are multiple MIME types listed for one extension?

Different applications and historical conventions may use alternative MIME identifiers for the same kind of file. Showing them all helps ensure compatibility across systems.