JavaScript Object to JSON Converter

Convert JavaScript object literal syntax to JSON format with customizable formatting options. Supports various JS features and syntax.

Paste your JavaScript object literal here

Switch to JSON to JS Object

Click to browse or drag and drop

Accepted: .js, .txt • Max: 10 MB

Your converted JSON will appear here

Converted JSON will appear here...