Sample JSONJSON
GeneratedRuby
Paste or type JSON
JSON → Ruby Hash · Local · No upload
JSON to Ruby Hash Converter
Sample JSON → Ruby Hash literal · Hash rockets · Two-space indentation · Escaped interpolation
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.
Convert JSON to a Ruby Hash Literal|Hash Rocket Syntax|Interpolation Escaped|Two-Space Indentation|Runs Locally — No Upload
Data, Not Class Definitions
This page renders your JSON value as a pasteable Ruby Hash — it does not generate classes.
Hash Rocket Syntax
String keys use hash rockets and are left exactly as they are in your JSON — they aren't silently turned into symbols.
Interpolation Escaped
Interpolation markers inside string values are escaped, so nothing in your data gets evaluated as code at runtime.
Community-Standard Indentation
Two-space indentation per Ruby convention, with nested hashes and arrays clearly stepped.
Runs Locally — No Upload
Conversion runs in your browser; data is never uploaded.