LUAU LUA
File conversion

Convert LUAU to LUA

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

Luau is built on top of Lua 5.1, so much code runs unchanged after renaming to .lua. Anything using Luau-only features (type annotations, backtick string interpolation, continue) must be rewritten first or the plain Lua interpreter will throw a syntax error.

Also to LUA: TNS · WTF · C

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 LUAU to LUA?

People convert to .LUA to run a script outside Roblox in a standard Lua 5.1 interpreter or to reuse it in a non-Luau project. Because Luau extends Lua rather than replacing it, the conversion is mostly a rename plus manual cleanup of the extra syntax.

How to convert LUAU to LUA

luau-analyze (find incompatibilities) OPEN-SOURCE

Run luau-analyze script.luau to surface type usage and syntax so you know exactly what to strip before it will parse as Lua.

Standard Lua 5.1 (test the result) FREE

After cleanup, run lua5.1 script.lua to confirm it parses and runs; any remaining Luau syntax will error out here.

About these formats

Quality & what to watch

  • Luau-only syntax (type annotations, |/& type unions, string interpolation, continue) will not parse in plain Lua.
  • Sandboxed Luau removes io, os, debug and loadstring; code that never used them ports most cleanly.
  • There is no automatic Luau-to-Lua converter; the edits are manual.

Frequently asked questions

Can I just rename the file?
Sometimes. If the script is plain Lua 5.1 with no Luau extras, renaming is enough; otherwise it will error.
What breaks most often?
Type annotations and backtick string interpolation, which are Luau-only and invalid in Lua.
Does the result run in Roblox?
Roblox runs Luau, which accepts Lua 5.1 code, so a stripped-down .lua still works there.