.lua
💻 CodeText-based

.lua File — Lua Script

text/x-lua

File Inspector

Drop any file to identify its extension and type — runs entirely in your browser

LUA

Drop a .lua file here or click to choose

Or drop any file to identify its extension

Expected MIME type:text/x-lua

Quick Facts

Extension.lua
Full NameLua Script
MIME Typetext/x-lua
CategoryCode
TypeText-based (human-readable)
Typical Size1 KB – 50 KB
First Appeared1993

What Is a .lua File?

Lua is a lightweight, embeddable scripting language created at the Pontifical Catholic University of Rio de Janeiro, Brazil, in 1993. LUA files contain source code in a dynamically-typed language designed for extending applications as a powerful, efficient, and portable scripting layer. Lua's entire interpreter compiles to under 300 KB, making it the most popular choice for embedding scripting capabilities in games, embedded systems, and applications. Lua is the primary scripting language for numerous game engines including Roblox, World of Warcraft (addons), Garry's Mod, and LÖVE, as well as network tools like Wireshark, web servers like Nginx (via OpenResty), and databases like Redis. The language features tables as its single compound data structure (serving as arrays, dictionaries, objects, and modules), first-class functions, closures, coroutines for cooperative multitasking, and metatables for operator overloading and prototype-based inheritance. LuaJIT, a just-in-time compiler for Lua, is one of the fastest dynamic language implementations available. Lua's simplicity, small footprint, and fast execution make it ideal for configuration, scripting, and rapid prototyping in resource-constrained environments.

How to Open .lua Files

VS Code
ZeroBrane Studio
vim
Emacs
Sublime Text
any text editor

Related File Extensions

More Code File Extensions

Other code formats you might encounter

Browse File Extensions by Category

Explore our reference of 259 file extensions with details, programs, and related formats.