Three.js
The most widely used JavaScript library for rendering 3D graphics in the browser with WebGL and WebGPU.

At a glance
Checked
- Pricing
- Free: the whole library, the browser editor and the examples
- Licence
- MIT, open source
- GitHub
- github.com/mrdoob/three.js119.1k stars · 37k forks · written in JavaScriptLatest release r187, 30 Oct 2026From GitHub, updated at every build
- Platforms
- In the browser, as a JavaScript library rendering with WebGL or WebGPU
- Website
- threejs.org
What it’s good for
Three.js is a JavaScript library for 3D in the browser. You build a scene from cameras, lights, meshes and materials, load glTF models and textures, and render it with WebGL or WebGPU, with SVG and CSS3D renderers available as addons. Product viewers, interactive hero sections, data visualisations and browser games are typical uses.
It suits front-end developers and creative coders who are comfortable writing JavaScript and want full control over a scene. It is free and MIT licensed, with a large set of examples, documentation, a manual and an editor on threejs.org. New releases come out as numbered revisions; r187 is the current one.
Beside the documentation and manual, threejs.org links a TSL guide, a DevTools extension for Chrome, a forum and a Discord server where you can ask questions.
Alternatives to Three.js
All 3D toolsReact Three Fiber
Writes Three.js scenes as React components, with no overhead over plain Three.js.
3D
Babylon.js
An open source engine aimed at web games, with a browser playground and node material editor.
3D
Questions
- Is Three.js free for commercial projects?
- Yes. Three.js is open source under the MIT licence, which allows commercial use.
- Does Three.js support WebGPU?
- Yes. The current builds include both a WebGL renderer and a WebGPU renderer.




