Lua Table Generator
Generate Lua table constructors from JSON input. Handles nested objects, arrays, strings, numbers, booleans, and nil values with proper indentation.
How to Use Lua Table Generator
Enter a JSON value (object, array, or primitive) and set a variable name. Click Generate Lua Table to produce a properly formatted Lua table constructor.
Step-by-Step Instructions
- Enter a variable name (default: data)
- Paste or type JSON input
- Click Generate Lua Table
- Copy the Lua table code
Related Tools
JSON Formatter and Validator
Format, validate, and pretty-print JSON with syntax highlighting.
Base64 Encoder and Decoder
Encode text to Base64 or decode Base64 strings back to plain text.
URL Encoder and Decoder
Encode special characters for URLs or decode percent-encoded strings.
HTML Entity Encoder and Decoder
Encode special characters as HTML entities or decode them back.