LUA EXE
File conversion

Convert LUA to EXE

QUICK ANSWER
Is it possible to convert LUA to EXE?
Yes - LUA converts to EXE.

This is packaging, not a format conversion: the script is embedded inside an executable alongside the Lua interpreter. srlua is the simplest option on Windows; luastatic produces a fully native binary but requires a C compiler toolchain such as MinGW.

Also to EXE: PY · S · RB

On this page

Tested on macOS, Windows & Linux
Last verified Oct 2026

More free converters

HEIC, PNG, WEBP, MP3 and more - every tool here is free.

Open the toolbox

Why convert LUA to EXE?

Distributing a .lua script to users without a Lua installation requires bundling the runtime with the script. Packaging to .exe presents the tool as a normal Windows application and removes any dependency on Lua being installed on the target machine.

How to convert LUA to EXE

srlua FREE

Run glue.exe lua.exe yourscript.lua output.exe to bundle the script with a stripped Lua runtime into a self-contained .exe. Scripts that require native C libraries still need those .dll files placed alongside the executable.

luastatic FREE

Run luastatic yourscript.lua liblua.a -I/path/to/lua/include to statically link the script and its Lua dependencies into a native executable. Requires LuaRocks and a C compiler such as MinGW.

About these formats

Quality & what to watch

  • srlua embeds the original Lua source inside the .exe; the script can be extracted with a hex editor. luastatic compiles to native code and is harder to reverse, though not impossible.
  • External Lua modules and native .dll files are not bundled automatically by srlua and must be distributed alongside the .exe.
  • luastatic on Linux or macOS produces an ELF or Mach-O binary, not a .exe. Build on the target platform to get the correct binary type.

Frequently asked questions

Does the target machine need Lua installed to run the .exe?
No. Both srlua and luastatic bundle the Lua runtime into the output file.
What is the difference between srlua and luastatic?
srlua glues the script onto a runtime stub; luastatic uses a C compiler to produce a true native binary and can statically link Lua modules.
Can I bundle a script that uses external libraries?
luastatic can statically link Lua modules; srlua cannot and requires native .dll files to be placed next to the .exe.