What is a VRML file?

A WRL file is a VRML (Virtual Reality Modeling Language) scene: plain text that describes 3D shapes, their colours and textures. VRML97 is an ISO standard from 1997 and is still exported by CAD, PCB and scientific software.

File extension.wrl, .vrml
TypeScene description (text)
Developed byWeb3D Consortium (VRML Architecture Group)
First released1994; VRML97 in 1997
EncodingUTF-8 text, sometimes gzip-compressed (.wrz)
Colour / materialsYes – materials, per-face and per-vertex colours, textures
UnitsNone – metres by convention; KiCad writes 0.1 inch
Exact CAD geometryNo
MIME typemodel/vrml
Opens in 3dfilesYes – VRML viewer

Open a VRML fileVRML to STL converter

About the VRML format

VRML was the first web standard for 3D. Browser plug-ins for it are long gone, but the format survives as an exchange format because it is simple, text-based and supports colour. KiCad uses .wrl for component models, SolidWorks and Mathematica export it, and full-colour 3D printing services accept it because it carries per-face colour, which STL cannot.

Two versions exist. VRML 1.0 (1995) uses a different syntax and is rare today. VRML 2.0, standardised as VRML97, is what almost every program writes; its first line reads #VRML V2.0 utf8. X3D is its XML-based successor.

What a VRML file looks like inside

VRML97

#VRML V2.0 utf8
Shape {
  appearance Appearance {
    material Material { diffuseColor 0.8 0.1 0.1 }
  }
  geometry IndexedFaceSet {
    coord Coordinate { point [ 0 0 0, 10 0 0, 0 10 0 ] }
    coordIndex [ 0, 1, 2, -1 ]
  }
}

Each Shape pairs an appearance with a geometry. Faces list vertex numbers and end with -1, so polygons with any number of corners are allowed.

How to open a VRML file

  1. Open it in the VRML viewer.
  2. Free desktop: Blender (File → Import → X3D/VRML2), MeshLab, FreeCAD.
  3. Convert to STL for printing or to GLB to keep the colours.

Convert VRML files

Common problems

The model is tiny or huge

VRML has no unit. KiCad models are in units of 0.1 inch (2.54 mm), most other exports are in metres. Check the size after opening and scale it.

It does not open at all

VRML 1.0 files and files that rely on PROTO or Script nodes are not plain VRML97. Re-export as VRML97 or as OBJ.

Colours are missing after conversion

STL cannot store colour. Convert to GLB, OBJ or 3MF instead.

Questions about VRML files

Is WRL the same as VRML?

Yes. .wrl ("world") is the file extension of VRML files; .vrml is used occasionally.

Can I 3D print a WRL file?

Yes. Colour printing services take it directly; for a normal printer convert it to STL or 3MF first.