What is an X3D file?
An X3D file is a 3D scene in Extensible 3D, the ISO-standard successor of VRML, usually written as XML with the .x3d extension. This site does not open X3D. Convert it first: MeshLab imports .x3d and saves OBJ, STL or PLY, and those open in the 3D viewer.
| File extension | .x3d (XML), .x3dv (Classic VRML), .x3db (binary) |
|---|---|
| Type | 3D scene description |
| Developed by | Web3D Consortium |
| Encoding | XML text (.x3d), VRML-style text (.x3dv) or compressed binary (.x3db); gzip forms .x3dz and .x3dvz |
| Colour / materials | Yes – materials, colours and textures, as in VRML |
| MIME type | model/x3d+xml |
| Opens in 3dfiles | No – convert it to OBJ, STL or GLB first. Only the VRML97 form (.wrl) opens, in the VRML viewer |
How to open or convert an X3D file
- MeshLab (free): import the .x3d (it reads the XML and the Classic VRML encodings) and export it as OBJ, STL or PLY.
- Blender: install the "Web3D X3D/VRML2 format" extension from extensions.blender.org (it was bundled up to Blender 4.1), import the .x3d from the File menu, then export glTF 2.0 (.glb), OBJ or STL.
- For STL only: Castle Game Engine's castle-model-converter reads X3D and writes STL.
- Open the converted file in the 3D viewer. Pick OBJ or GLB when you need the colours, because STL has none.
About the X3D format
The Web3D Consortium describes X3D as "a file format and run-time architecture to represent and communicate 3D scenes and objects" and as "a direct superset of VRML" with several encodings: XML (.x3d), Classic VRML (.x3dv), a compressed binary encoding (.x3db) and the VRML97 encoding (.wrl). X3D is standardised as ISO/IEC 19775; VRML97 was ISO/IEC 14772-1:1997.
Only the VRML97 encoding is read here. A .wrl file that starts with #VRML V2.0 opens in the VRML viewer, while a file whose content is X3D is rejected with a message that says so.
What an X3D file looks like inside
X3D (XML encoding)
<?xml version="1.0" encoding="UTF-8"?>
<X3D profile="Interchange" version="3.3">
<Scene>
<Shape>
<Appearance><Material diffuseColor="0.8 0.1 0.1"/></Appearance>
<IndexedFaceSet coordIndex="0 1 2 -1">
<Coordinate point="0 0 0, 10 0 0, 0 10 0"/>
</IndexedFaceSet>
</Shape>
</Scene>
</X3D>The same Shape, Appearance and IndexedFaceSet nodes as in a VRML97 file, written as XML elements. A Classic VRML .x3dv file looks like VRML and starts with #X3D instead of #VRML.
Common problems
A .wrl file is rejected as X3D
If a file named .wrl actually holds X3D (it starts with #X3D or contains an <X3D> element), the viewer says so instead of opening it. Convert it as described above.
Colours are gone after conversion
STL cannot store colour. Convert to OBJ or GLB instead.
Questions about X3D files
Is X3D the same as VRML?
X3D is its successor. The Web3D Consortium calls X3D "a direct superset of VRML"; a VRML97 .wrl file is one of its encodings, but an XML .x3d file cannot be read by a program that only knows VRML.
Can FreeCAD open X3D?
No. FreeCAD's import and export table lists .x3d as an export format only.
Can I 3D print an X3D file?
After converting it to STL or 3MF. MeshLab and castle-model-converter both write STL from X3D.
Does this site open .x3d files?
No. A dropped .x3d gets the message that it is not a 3D file this tool can open. Convert it to OBJ, STL, PLY or GLB first.