Skip to main content

Supported Formats

PlayCanvas supports a wide variety of file formats for different asset types. This page lists the formats that can be used in your projects.

3D Models

FormatExtensionNotes
glTF Binary.glbRecommended format. Efficient, widely supported
glTF.gltfJSON-based with external files
FBX.fbxConverted to GLB on import in Editor
COLLADA.daeConverted to GLB on import in Editor
OBJ.objBasic mesh format, no animations
tip

GLB is the recommended format for 3D models. It's compact, loads quickly, and supports all PlayCanvas features including animations, materials, and morph targets.

Textures

FormatExtensionNotes
PNG.pngLossless, supports transparency
JPEG.jpg, .jpegLossy compression, no transparency
WebP.webpModern format, good compression
AVIF.avifNext-gen format, excellent compression
GIF.gifConverted to PNG/JPG on import
TGA.tgaConverted to PNG/JPG on import
BMP.bmpConverted to PNG/JPG on import
TIFF.tif, .tiffConverted to PNG/JPG on import
HDR.hdrHigh dynamic range, for environment maps
EXR.exrHigh dynamic range, converted to RGBM PNG

Texture Compression

For optimized delivery, textures can be compressed to GPU-native formats:

FormatPlatformNotes
BasisAllUniversal compressed format
DXT/BCDesktopWindows/Mac/Linux
PVRTCiOSApple devices
ETCAndroidMost Android devices
ASTCModern mobileiOS 8+, Android with ASTC support

Audio

FormatExtensionNotes
MP3.mp3Widely supported, good compression
OGG Vorbis.oggOpen format, good quality
WAV.wavUncompressed, large files
M4A.m4aAAC audio
note

For best browser compatibility, provide both MP3 and OGG versions of audio files. PlayCanvas will use the format supported by the user's browser.

Fonts

FormatExtensionNotes
TrueType.ttfConverted to bitmap font on import
WOFF.woffWeb font format

Scripts

FormatExtensionNotes
JavaScript.jsClassic scripts
ES Module.mjsESM scripts (recommended)

Data Files

FormatExtensionNotes
JSON.jsonStructured data
Text.txtPlain text
CSV.csvTabular data (as text)
XML.xmlMarkup data (as text)
HTML.htmlHTML documents
CSS.cssStylesheets

Shaders

FormatExtensionNotes
GLSL.glslOpenGL shading language
Vertex Shader.vertVertex shader source
Fragment Shader.fragFragment shader source

Other

FormatExtensionNotes
WebAssembly.wasmCompiled binary modules
Binary.binRaw binary data
PLY.ply3D Gaussian Splat data

See Also