.lua

What is a .lua file?

Lua is a lightweight embeddable scripting language used in games, embedded systems, and application scripting.

Use caution
Type Code
By PUC-Rio (Roberto Ierusalimschy et al.)
MIME text/x-lua

Drop any file to identify it

No upload. No signup. No sending your file halfway across the internet.
We tell you what it is, right here in your browser.

What is it

Lua is the scripting language that hides inside everything. Roblox runs on Lua. World of Warcraft addons are Lua. Nginx configs use Lua. Redis scripting is Lua. Neovim's configuration is Lua. The language is deliberately tiny — the entire interpreter is about 250 KB — which makes it trivially embeddable in any application that needs a scripting layer.

The language itself is minimalist: tables (the only data structure), functions as first-class values, coroutines, and not much else. This simplicity is the point. Lua doesn't try to be a general-purpose language — it tries to be the best possible language for embedding inside another program. The C API is elegant and battle-tested.

Lua scripts are plain text. Any text editor works. VS Code with Lua extensions provides syntax highlighting and linting. For Roblox development, Roblox Studio is the dedicated IDE. For Neovim configuration, the script runs in the editor itself. For standalone scripts, install the Lua interpreter (`brew install lua`, `apt install lua5.4`) and run with `lua script.lua`.

Technical details
Full Name
Lua Script
MIME Type
text/x-lua
Developer
PUC-Rio (Roberto Ierusalimschy et al.)
Magic Bytes
N/A
Safety
.lua requires caution. Script file. Safe to read but can execute arbitrary code when run with a Lua interpreter.
What opens it
VS Code
FREE Windows / Mac / Linux
Roblox Studio
FREE Windows / Mac
Any text editor
FREE Windows / Mac / Linux
FAQ
What is Lua used for?
Game scripting (Roblox, WoW, Love2D), embedded systems, application plugins (Neovim, Nginx, Redis), and any situation where you need a lightweight, embeddable scripting language.
Is Lua hard to learn?
Lua is one of the easiest languages to learn. The entire language reference fits in about 30 pages. Tables and functions are the core concepts. If you know any programming language, Lua takes hours, not weeks.
Related formats