Skip to content

DirectX X to glTF Converter

FileFlip converts DirectX X to glTF entirely inside your browser, using Assimp compiled to WebAssembly. The file is never uploaded to a server: it is read off your disk, converted on your own machine, and saved back by the browser. That means no file-size limit, no queue and no account.

Convert X to

How do I convert an DirectX X file to glTF?#

  1. Drop your DirectX X file onto the converter at the top of this page, or click it to pick one from your computer. You can add as many as you like.
  2. Leave the target set to glTF and the conversion starts on its own. FileFlip downloads 11.2 MB of WebAssembly the first time and nothing after that, then runs Assimp on your own machine.
  3. Save the glTF file. Your browser writes it straight to your downloads folder, because there was never a server holding it.

Does converting DirectX X to glTF lose quality?#

Not in the sense of pixels or samples. Converting DirectX X to glTF rebuilds the file in glTF's own model rather than re-encoding it, so everything glTF can represent comes through exactly and anything it cannot has to be dropped. Expect the geometry to be exact, and anything the target has no place for, such as a rig, to be left behind.

Is it safe to convert DirectX X files online?#

Yes, because nothing is uploaded. FileFlip converts DirectX X files inside the browser tab you already have open, using WebAssembly builds of the same engines a desktop converter would install. Your file is read from your own disk into the page's memory, and no request carrying it is ever made.

You do not have to take that on trust. Open your browser's network panel, run a conversion, and you will see the engine come down and your file go nowhere. There is no upload, no server-side copy, no retention window, and no account tied to what you converted.

How FileFlip works lists every engine, its version and its download size, and shows how to check for yourself that nothing leaves your machine.

What DirectX X to glTF actually does to the file#

Converting DirectX X to glTF runs on Assimp, downloads 11.2 MB of WebAssembly the first time and nothing after that, rebuilds the file in the target's own model.

EngineAssimp
Conversion pathOne step: DirectX X → glTF
Downloaded to your browser11.2 MB, once, then cached by your browser
QualityRebuilt in the target's model
You get backOne file, or a ZIP when the source carries separate materials or buffers
Where it runsIn a background worker, so the page stays responsive

What survives the conversion

What is in the fileThis conversionWhy
MaterialsSometimesSurvives for some files and not others.
TexturesSometimesSurvives for some files and not others.
Skeleton and animationSometimesSurvives for some files and not others.

Worth knowing before you start:

  • the result is a single file when the model has no external materials or buffers, and a ZIP when it does

What is an DirectX X file?#

An X file is Microsoft's DirectX mesh format, storing geometry, materials, textures, skinning and animation as a set of typed data templates, in either a human-readable text encoding or a tokenised binary one.

Use X only to keep compatibility with older DirectX SDK samples or a legacy pipeline built around the format.

Convert X to FBX or glTF for any current game or graphics pipeline, since DirectX itself has moved on from the format.

What is a glTF file?#

A glTF file is a JSON scene description, developed by the Khronos Group and first released in 2015, that lists a model's meshes, PBR materials, animations and scene hierarchy while its binary geometry and textures sit alongside it in separate buffer and image files.

Use glTF's JSON form when a pipeline needs to inspect or hand-edit the scene structure directly, since it's plain, indexed JSON.

Convert glTF to GLB when the model needs to travel or load as a single file instead of a folder of JSON, buffers and textures.

DirectX X to glTF questions people ask#

Is the X file format still used?

Rarely for new work. It's tied to Direct3D's Retained Mode API, which Microsoft stopped updating after DirectX 3.0 and later dropped outright, so current DirectX pipelines use FBX or glTF instead.

What is a DirectX X file used for?

An X file stores a 3D mesh for Microsoft's DirectX, including materials, textures, skinning and animation, laid out as a set of typed templates. It was the standard model format across the DirectX SDK samples through the 1990s and 2000s.

Why do some .x files look like source code instead of a 3D model?

The .x extension is shared with Lex lexical-analyzer source files on Unix systems, an unrelated format entirely. A text-encoded DirectX X file is also readable as plain text, but it starts with the header "xof" rather than Lex syntax.

What's the difference between glTF and GLB?

glTF is a JSON text file that references its geometry buffers and textures as separate files, while GLB packs that same JSON, the buffers and the textures into a single binary file. Both describe the identical data model; GLB just bundles everything one file needs to travel as one upload.