Programs and libraries

LUAC viewer

To open a LUAC file, drop it in the box below. It opens straight away, even with no extension or the wrong one. Your browser opens it on your device: nothing is uploaded.

Opened on this device, never uploadedDrop or paste another file at any time

What you see

LUAC in the viewerWhat it does
VersionsLua 5.1 to 5.4, LuaJIT 2.0 and 2.1, Luau
InsideFunctions, strings and local names
SourceDecompiled: it runs the same, without the comments
SafetyRead from its headers only: nothing in it is run
Extensions.luac, .lua, .luau, .ljbc
UploadNone: opened on your device

What is a LUAC file?

In short

A .luac file is compiled Lua: a Lua script turned into bytecode by luac, LuaJIT or Roblox’s Luau. Games and Lightroom plugins often ship it under the name .lua.

How to open a LUAC file

  1. Add your LUAC. Drop the file in the box, choose it or paste it.
  2. Look at it. Its source, decompiled, beside every function’s instructions; which Lua made it (5.1 to 5.4, LuaJIT 2.0 or 2.1, Luau), the script’s original name, whether debug information was kept, its functions with their lines and every string it holds.

Questions

Why does my .lua file look like gibberish?

It is compiled Lua, not the script: bytecode only a Lua engine reads. Drop it here to see its source again and which Lua made it.

Can it turn bytecode back into a Lua script?

Yes. The source is decompiled from the bytecode and runs the same. Comments and layout aren’t kept in bytecode, and when the file was stripped its local names are made up. Download .lua saves it.

Is it safe to open a program here?

Yes. The viewer reads the file’s headers as data; the program never runs.

Is my file uploaded?

No. The viewer runs in your browser and opens the file on your device. Nothing is sent anywhere.

Can opening a file here damage it?

No. The viewer only reads the file: a browser gives a page no way to change it. If something goes wrong, the view stops and the file is as it was.

Related