Guide · updated November 2026
Browser game engines: which one, for which game.
A browser game engine runs your game in a web page with JavaScript or TypeScript, so players open a link instead of installing anything. Here are the engines worth your time, what each is good at, and a live game loop you can poke to see what every one of them does sixty times a second.
- 9 engines compared
- 2D and 3D
- TypeScript notes
- Live game loop
What is the best browser game engine?
For 2D, Phaser is the safest pick: mature, fast, huge community and full TypeScript types. For 3D, three.js gives the most control and Babylon.js the most built in (physics, GUI, editor tools). PlayCanvas suits teams who want a visual editor, and Godot exports to the web if you also want desktop builds.
The browser game engines worth learning
Ranked for a solo developer or small team shipping a web game in 2026. Every engine here is free to use.
- 1
Phaser
Best 2D all-rounderThe most used HTML5 game framework. Scenes, sprites, tilemaps, arcade and Matter physics, tweens, input, audio and cameras are all built in, and the docs and examples cover almost any 2D genre.
- Language
- JavaScript / TypeScript
- Licence
- MIT
Good- Very mature, thousands of examples
- First-class TypeScript types
- WebGL with Canvas fallback
- Free and MIT licensed
Watch out- 2D only
- No visual editor in the core (the paid Phaser Editor adds one)
- Large API to learn
Best for: Platformers, puzzle, arcade and casual mobile web games
- 2
three.js
Most flexible 3DA 3D rendering library rather than a full engine: scenes, cameras, lights, PBR materials, glTF loading, post-processing and a WebGPU renderer. You add physics (Rapier, cannon-es) and game structure yourself.
- Language
- JavaScript / TypeScript
- Licence
- MIT
Good- Biggest 3D web community
- glTF, PBR, shadows, WebGPU
- Small core, import only what you use
Watch out- No editor, no physics, no scene system out of the box
- You write the game architecture
Best for: Custom 3D games, product viewers, experiments and anything stylised
- 3
Babylon.js
Most complete 3DA full 3D engine with physics (Havok), GUI, particle systems, a node material editor, an inspector and a playground. Written in TypeScript, backed by a dedicated team, with WebGPU support.
- Language
- TypeScript
- Licence
- Apache 2.0
Good- Batteries included
- Excellent debugging inspector
- Written in TypeScript
- Strong backwards compatibility
Watch out- Bigger download than three.js
- Fewer third-party tutorials
Best for: 3D games that need physics, UI and tooling without stitching libraries together
- 4
PlayCanvas
Best visual editorAn open-source WebGL/WebGPU engine with a collaborative, browser-based editor. Teams drag assets into scenes, script in JavaScript and publish to a URL. The engine is free; the hosted editor has free and paid tiers.
- Language
- JavaScript
- Licence
- MIT (engine)
Good- Real-time collaborative editor
- Small, fast runtime
- Good for ads and playable demos
Watch out- Best workflow depends on the hosted editor
- Smaller community than three.js
Best for: Teams, playable ads and 3D web experiences built visually
- 5
PixiJS
Fastest 2D rendererA 2D rendering library: sprites, text, filters and masks drawn very fast with WebGL or WebGPU. It is not a game engine, so physics, scenes and input are up to you, which is why many custom engines are built on it.
- Language
- TypeScript
- Licence
- MIT
Good- Extremely fast sprite batching
- WebGPU renderer
- Great for UI-heavy games
Watch out- Not a game framework
- You assemble the rest
Best for: Card, slot, puzzle and UI-heavy games; building your own engine
- 6
Godot (web export)
Desktop engine that also ships to the webA full open-source engine with a desktop editor, GDScript or C#, and 2D and 3D. Godot 4 exports HTML5 builds (C# web export is still limited), and since 4.3 a single-threaded export avoids the special server headers threads used to require.
- Language
- GDScript, C#
- Licence
- MIT
Good- Full editor, scene system, animation tools
- Same project ships to desktop and mobile
- MIT licensed
Watch out- Web builds are larger (often 20–40 MB) and slower to start
- C# projects can't export to web yet in most setups
Best for: Games that target desktop first but also want a playable web build
- 7
Excalibur.js
Cleanest TypeScript APIA 2D engine written in TypeScript with an entity-component system, collisions, tilemaps and a friendly, well-typed API. Smaller than Phaser and pleasant if you like strict types.
- Language
- TypeScript
- Licence
- BSD-2
Good- TypeScript-first
- Clear documentation
- Built-in debugging
Watch out- Smaller ecosystem
- Fewer ready-made examples
Best for: TypeScript developers making 2D games
- 8
KAPLAY
Fastest to a first gameThe community continuation of Kaboom.js: a tiny, playful API where a game is a few dozen lines. Great for jams, learning and prototypes.
- Language
- JavaScript / TypeScript
- Licence
- MIT
Good- Very short code
- Fun to learn
- Good for game jams
Watch out- Less suited to large games
- Performance ceiling below Phaser
Best for: Beginners, game jams and quick prototypes
- 9
EvonX
Skip the engine choiceAn AI game maker: describe the game and EvonX writes a real TypeScript project on a web engine, runs it in a live preview and lets you keep changing it by chatting. You still own the code.
- Language
- Plain English (TypeScript underneath)
- Price
- Free plan
Good- Playable game from one sentence
- Real source code you can export
- Accounts, saves and leaderboards built in
Watch out- Portrait, touch-first web games rather than big 3D worlds
- Less low-level control than writing it yourself
Best for: Getting a playable web game today, then editing it
Side by side
| Engine | 2D / 3D | Editor | Physics | TypeScript | Good first project |
|---|---|---|---|---|---|
| Phaser | 2D | Code (paid editor optional) | Arcade, Matter | Yes | Flappy-style or platformer |
| three.js | 3D | Code | Add Rapier or cannon-es | Yes | Rolling ball, 3D runner |
| Babylon.js | 3D | Code + playground, inspector | Havok built in | Native | Physics sandbox |
| PlayCanvas | 3D | Browser editor | Ammo.js built in | Yes | 3D product or arena |
| PixiJS | 2D | Code | None | Native | Card or match-3 game |
| Godot | 2D + 3D | Desktop editor | Built in | No (GDScript, C#) | Top-down shooter |
| Excalibur | 2D | Code | Built in | Native | Breakout |
| KAPLAY | 2D | Code | Simple | Yes | Jam game |
Phaser vs Godot for a web game
Pick Phaser when the browser is the main platform. Builds are small (the engine is around 1 MB minified, a whole game often under 5 MB), start instantly, and you work in the same JavaScript tooling as any website. Everything is code, which some people love and some find slow for level design.
Pick Godot when you want an editor and also plan desktop or mobile releases. Its web export works, but the download is bigger and the first load slower, which matters on portals where players leave within seconds. For a jam game or a portal game, Phaser usually wins; for a game that will also go to Steam, Godot does.
TypeScript game engines and frameworks
Babylon.js, PixiJS and Excalibur are written in TypeScript; Phaser, three.js and PlayCanvas ship complete type definitions. In practice any of them gives you autocomplete and type errors in VS Code. For a TypeScript-first 2D engine, Excalibur feels the most natural; for 3D, Babylon.js.
A framework (Phaser, Excalibur) gives you scenes, input and physics; a renderer (PixiJS, three.js) only draws, and you write or add the rest. If you are not sure which you want, start with a framework.
Frequently asked questions
What game engines use JavaScript?
Phaser, PixiJS, three.js, Babylon.js, PlayCanvas, Excalibur, KAPLAY, melonJS and Cocos Creator all use JavaScript or TypeScript. Godot and Unity can export to the web, but you write the game in GDScript, C# or another language.
Can I make a 3D game in the browser?
Yes. three.js, Babylon.js and PlayCanvas render 3D with WebGL 2 and, increasingly, WebGPU. Keep models in glTF/GLB, compress textures with KTX2 and test on a phone early.
Is HTML5 the same as a browser game?
Yes: "HTML5 game" is the older name for a game that runs in a web page using the canvas element, WebGL and JavaScript. Every engine here makes HTML5 games.
Which engine is easiest for a total beginner?
KAPLAY for code, GDevelop if you want no code, or an AI game maker like EvonX if you want to describe the game in words. See our guide to the best game engine for beginners.
Do browser games work on phones?
Yes, all these engines support touch and mobile browsers. Design for a portrait screen and short sessions, and keep the first download small.
EvonX AI game maker
Got the asset? Now make the game.
Describe your game in one sentence and EvonX builds it: code, art, sound and a link you can share. Free to start, no download, plays on any phone.