TOOLS / RUBY HASH CONVERTER

Ruby Hash ↔ JSON

Convert between Ruby Hash and JSON formats instantly. Supports symbol shorthand, rocket syntax, and string keys. All processing happens in your browser.

RUBY → JSON
Ruby Hash 0 / 1,000,000
JSON

Supported Ruby Hash Syntaxes

Symbol Shorthand

{
  user: "john",
  active: true
}

Rocket Syntax

{
  :user => "john",
  :active => true
}

String Keys

{
  "user" => "john",
  "active" => true
}

Mixed Syntax

{
  user: "john",
  :id => 123,
  "email" => "a@b.com"
}