Processed in your browser

TOML / JSON5 Converter

Bridges TOML tables with JSON5 objects for development configuration. JSON5 comments, quotes, hexadecimal notation, and trailing commas normalize to values; TOML null and ambiguous types remain unsupported.

Processed in your browser
0 / 1,000,000
Converted output

Tool guide

What is TOML / JSON5 Converter?

TOML and JSON5 Converter supports development settings, examples, and relaxed-syntax compatibility review. TOML tables become JSON5 objects, while comments, quote choices, unquoted keys, hexadecimal numbers, and trailing commas normalize to values during parsing. Null, non-finite numbers, and structures without a safe TOML representation are rejected instead of producing ambiguous configuration. Common workflows include the following. Turn TOML into editable JSON5. Generate TOML from JSON5. Review relaxed syntax differences. The page also documents input boundaries, output behavior, and practical cautions so you can review the result before putting it into an application, configuration, test, or production workflow.

When to use it

  • Turn TOML into editable JSON5.
  • Generate TOML from JSON5.
  • Review relaxed syntax differences.

How to use it

  1. Identify the source format.
  2. Check for null and non-finite numbers.
  3. Convert and read normalization warnings.
  4. Validate dates and arrays in the destination.
  5. Load one of the realistic examples first to verify the selected options and processing direction before replacing it with your own data.
  6. Review the output, status message, and documented limits; copy, download, or continue only after the result matches your expectation.

Runnable examples

The “Example 1” and “Example 2” buttons load the matching inputs. They cover different structures, directions, or boundaries and can be run directly in the workspace.

Example 1

site = "JSONLane"

[release]
tools = 70
ready = true

Example 2

// JSONLane
{ site: 'JSONLane', release: { tools: 70, ready: true }, }

Input rules

  • TOML requires a root object.
  • JSON5 non-finite numbers are rejected.
  • Dates require destination review.
  • Text input is counted before processing and is limited to 1,000,000 characters on this page; file modes apply the separate file limit shown in the workspace.
  • TOML cannot represent null.

Output rules

  • JSON5 syntax is normalized.
  • TOML cannot represent null.
  • Comments and layout are not retained.
  • Output reflects only the current input, direction, and options; rerun after changing a mode or value instead of treating an earlier result as current.
  • JSON5 comments and quote choices are lost.

Limitations and cautions

  • TOML cannot represent null.
  • JSON5 comments and quote choices are lost.
  • Dates and source formatting are normalized.

How your data is handled

All parsing, conversion, Base64 work, and intermediate data remain in the current browser tab. JSONLane does not upload the input or retain it after refresh or close.

FAQ

Is TOML or JSON5 data uploaded?

No. Parsing, conversion, and output generation stay in the current browser tab.

Is every round trip lossless?

No. Table typing, comments, layout, and binary-specific values differ between formats and must be reviewed.

Why does the converter reject some valid documents?

The source may be valid but still lack a safe, unambiguous representation in the selected destination.

Can JSON5 null become TOML?

No. TOML has no standard null value.

Is hexadecimal notation retained?

No. It normalizes to a number value.

Is JSON5 suitable for production APIs?

Most APIs require strict JSON and need separate validation.

Updated: 2026-08-12