.lua Lua script

Text & source code

MIME typetext/x-lua
DescriptionLua script
CategoryText & source code
Based onapplication/x-executable, text/plain

Frequently asked questions

What is a .lua file?

A .lua file is a “Lua script” (MIME type text/x-lua).

How do I open a .lua file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .lua file?

No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.lua shows the guessed type.

Which format is .lua based on?

Technically a .lua file is a subtype of “Executable” (application/x-executable), so programs for that base format can often read it too.

Which MIME type belongs to .lua?

The MIME type is text/x-lua. In the Apache web server: AddType text/x-lua .lua; in nginx: types { text/x-lua lua; }.

Nearby entries