JSON to Jsonnet Converter
Two-way conversion · official sjsonnet evaluator · locals / functions / comprehensions · runs locally
No upload, no storage
JSON is processed in memory and never sent to a server.
Share via URL fragment
Share links encode data in the # anchor — never sent to a server.
Remember last edit
Optionally keep your last input locally; clear it with one click.
Why use this JSON to Jsonnet converter
A real evaluator, not a toy
Jsonnet to JSON runs the official sjsonnet (Scala.js build) in your browser — local bindings, functions, comprehensions and the std library evaluate per the language spec.
Two-way conversion
Turn existing JSON configs into idiomatic Jsonnet as a template starting point; evaluate hand-written Jsonnet on the spot to verify its output.
Idiomatic output
Valid keys go unquoted, reserved words get quotes automatically, trailing commas throughout — the output follows community conventions.
Engine loads on demand
The evaluator downloads only when you use Jsonnet to JSON, so the page opens fast; once loaded, switching is instant.
Local & private
Infrastructure configs carry internal details — everything evaluates on your machine, nothing uploaded.