JSON Encode/Decode

Encode data into a JSON string, and decode a JSON string back into data

Features

Supports both encoding and decoding

A bidirectional tool that converts between data and JSON strings

Parses JS-like notation too

Converts unquoted keys, trailing commas, and content with comments

Choose from 4 indents

Switch between 2/4 spaces, tabs, and minify to suit your purpose

Fine-grained escape control

Specify escaping of Unicode characters and slashes individually

How to Use

1

Select the conversion mode

Choose the encode or decode tab to set the conversion direction

2

Enter the data

Paste an object, array, or JSON string into the input field

3

Adjust the output format

Set the indent type and Unicode and slash escaping

4

Check and retrieve the result

Check the conversion result on screen and use it via copy or file save

Use Cases

Check formatted API responses

Format minified JSON for readability to quickly grasp the structure

Create configuration files

Convert hand-written objects into valid JSON format and save them

Transcribe from JS code

Convert JS objects with unquoted keys into proper JSON

Learn JSON syntax

Compare the encoded results to understand how data is represented

Verify multibyte characters

Check the internal representation of text such as Japanese with Unicode escapes

Basic Knowledge

What is JSON Escaping?

JSON escaping is the process of replacing characters that cannot be written directly in a string—such as '"' or newlines—with backslash-prefixed notation like '\"' or '\n'. Missing escapes are a common cause of syntax errors.

Why Does Japanese Text Become \uXXXX?

In JSON, any character can be represented using Unicode notation like '\u3042'. Due to compatibility with legacy systems that cannot handle non-ASCII characters, Japanese text is often converted to this format by convention. Both notations have the same meaning.

Safety and Privacy

Runs entirely in your browser

Your input data is processed only within your browser and is never sent externally.

Processing only in your browser

the conversion process is processed entirely within your browser, and input data is not sent to any server.

Communications encrypted with HTTPS

Page loading is also encrypted by TLS, and content cannot be read by third parties.

No transmission to third parties

Input content is not sent to external services such as ad networks or trackers.

No automatic saving of results

the input data and conversion result and input suggestions are not stored on the server.

Follow RAKKOTOOLS on Google Search

175 useful tools become easier to find from Google Search and AI Search!

  • Found in search
  • Also shown in AI Search
  • Discover new tools
Related Tools