---
title: "JSON Editor Online: Edit, Search & Convert JSON | Prettify"
description: Use this JSON editor online to change values in a tree or raw view,
  search and replace with regex, and convert to YAML, CSV, or XML. Free, and
  nothing is uploaded.
url: https://prettify.tools/json-editor
---

# JSON Editor Online

This JSON editor online lets you change a document without hand-counting brackets. Edit a value or rename a key in the tree, rewrite the text in raw mode, or use search and replace for many places. Paste your JSON in the box below, then open it in the full editor.

## What the online JSON editor does

Prettify is an online JSON editor with two ways to change a document. The tree view edits one value or one key at a time. The raw view edits the text, so you can add keys, delete items, and rewrite whole blocks.

You bring JSON from a paste, a file, or a URL. You get back a document that still parses, ready to copy or download. The editor checks your text as you work, so you see a mistake before it spreads.

The box at the top of this page is a quick start. It formats the JSON you paste and shows its size and depth. The editing happens in the full editor, which opens with the same document.

## Key features

Editing is free, with no sign-up. These are the features people use most when they change JSON, from a one-value fix to a change that touches the whole file.

- Double-click a value in the tree to edit it. Press Enter to keep the change or Esc to cancel.
- Double-click a key to rename it. The editor refuses an empty name, a name that already exists, and an array index.
- What you type is read as JSON. The text 42 becomes a number, true becomes a boolean, and "42" with quotes stays a string.
- In the Raw view, select Edit to open a text box with line numbers. The status shows Valid JSON or the first error. Save with Cmd+Enter (Mac) or Ctrl+Enter (Windows, Linux), and cancel with Esc.
- In the Table view, double-click a cell to edit a plain value in a list of records.
- Press Cmd+H (Mac) or Ctrl+H (Windows, Linux) to search and replace. Regex and case-sensitive toggles sit beside the field.
- Replace All shows how many matches it will change. If a replacement would break the JSON, the editor keeps your document and shows Replace would break format.
- Sort Keys orders every key from A to Z. Convert changes the document to YAML, CSV, XML, or JSONL.

## How to use the JSON editor online

Start with the box on this page, then make your changes in the full editor. The box runs in your browser and takes documents up to 512 KB. Larger documents go straight to the editor.

1. Paste your JSON into the box at the top of this page, or select Try an example.
2. Check the result panel. It shows the formatted JSON, or the line and column of an error.
3. Select Open in full editor. The button reads Fix it in the editor when the JSON has an error.
4. In the Tree view, double-click a value, type the new one, and press Enter.
5. To add or delete a key, open the Raw tab, select Edit, change the text, and select Save.
6. Press Cmd+H (Mac) or Ctrl+H (Windows, Linux) to replace text across the whole document.
7. Select Copy Formatted or Download in the toolbar to take the result with you.

## Worked example: rename a key in every record

Say a product list spells the key colour in every item, and your code expects color. Renaming each key by hand takes three edits. Replace All does it in one step.

Open the replace row, type colour in the search field and color in the replace field, turn on the Aa toggle, and select Replace All. The button shows 3. Then double-click 89 in the last item, type 84.5, and press Enter.

Replace works on the document text, so it changes keys and any value that matches. Here only the three keys match. The value 84.5 is stored as a number, because you typed it without quotes. Typing "84.5" with quotes would store a string.

```
Before
{
  "products": [
    {
      "sku": "KB-01",
      "colour": "black",
      "price": 49
    },
    {
      "sku": "MS-07",
      "colour": "white",
      "price": 19.5
    },
    {
      "sku": "HD-11",
      "colour": "grey",
      "price": 89
    }
  ]
}

After Replace All (colour -> color) and the price edit
{
  "products": [
    {
      "sku": "KB-01",
      "color": "black",
      "price": 49
    },
    {
      "sku": "MS-07",
      "color": "white",
      "price": 19.5
    },
    {
      "sku": "HD-11",
      "color": "grey",
      "price": 84.5
    }
  ]
}
```

## Common use cases

An editor is most useful when the change is small but the file is large, or when the same change repeats many times. These are the usual jobs people bring to it.

- Change a value in an API response so you can use it as a test fixture.
- Rename a key across a data file after a schema change.
- Add a missing field to one record in a seed file.
- Fix a config file that fails to parse, then copy it back.
- Reshape a payload, then convert it to YAML or CSV.
- Tidy a hand-edited document with Sort Keys.

## Version history is the Pro part of editing

Editing, search and replace, Sort Keys, Generate Types, and conversion are free. The Free plan keeps the latest version of each document. Pro keeps up to 50 versions, so you can reopen an earlier one from History and compare two versions. Pro also adds jq, which reshapes a document with a query such as del(.debug). Pro costs US$19.99, paid once.

## Frequently asked questions

### Is this JSON editor online free?

Yes. Editing in the Tree, Raw, and Table views, search and replace, Sort Keys, and conversion are free, with no sign-up. Version history beyond the latest version, Diff, and jq are Pro.

### Can I add or delete a key in the tree?

Not in the tree. The tree edits values and renames keys. To add a key or delete an item, open the Raw tab, select Edit, change the text, and select Save.

### What happens if I type text that is not JSON into a value?

The tree reads what you type. Numbers, true, false, null, arrays, and objects keep their type. Anything else becomes a string, so the document stays valid.

### Can I undo a change?

Tree edits apply at once and have no undo button. In the Raw view, Cancel or Esc throws away your draft before you save. With Pro, you can reopen an earlier version from History.

### Can I edit JSON that has comments?

Yes. The editor reads comments, trailing commas, and single quotes as JSONC and shows a note. A tree edit rewrites the document as plain JSON, and Copy Formatted and Download write plain JSON too, so the comments do not survive.

### Is my JSON uploaded while I edit it?

No. Each edit changes the document in your browser tab, and the editor saves it to History in your own browser storage. The text leaves your device only if you create a share link.

## Related tools

- [JSON Formatter: Prettify and Pretty Print JSON](https://prettify.tools/json-formatter)
- [JSON Viewer with Tree, Table, and Diagram Views](https://prettify.tools/json-viewer)
- [JSON Tree Viewer](https://prettify.tools/json-tree-viewer)
- [JSON Validator](https://prettify.tools/json-validator)
- [How to Edit a JSON File](https://prettify.tools/how-to-edit-a-json-file)
- [jq Playground: Run jq Online](https://prettify.tools/jq-playground)

## Structured data

```json
{
  "@context": "https://schema.org",
  "@type": "SoftwareApplication",
  "name": "Prettify",
  "url": "https://prettify.tools",
  "description": "Multi-format data viewer, editor, and query engine for JSON, YAML, CSV, XML, Mermaid, Markdown, MDX, HTML, and SVG",
  "applicationCategory": "DeveloperApplication",
  "operatingSystem": "Web, macOS, Windows, Linux",
  "offers": [
    {
      "@type": "Offer",
      "price": "0",
      "priceCurrency": "USD",
      "description": "Free tier with core features"
    },
    {
      "@type": "Offer",
      "price": "19.99",
      "priceCurrency": "USD",
      "description": "Pro: lifetime access to all features"
    }
  ],
  "publisher": {
    "@id": "https://prettify.tools/#organization"
  }
}
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "@id": "https://prettify.tools/#organization",
  "name": "Prettify",
  "legalName": "Off Leash Labs",
  "url": "https://prettify.tools/",
  "logo": {
    "@type": "ImageObject",
    "url": "https://prettify.tools/icon-512.png",
    "width": 512,
    "height": 512
  },
  "contactPoint": {
    "@type": "ContactPoint",
    "contactType": "customer support",
    "email": "offleashlabs@gmail.com",
    "availableLanguage": "English"
  }
}
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "WebPage",
      "@id": "https://prettify.tools/json-editor",
      "url": "https://prettify.tools/json-editor",
      "name": "JSON Editor Online: Edit, Search & Convert JSON | Prettify",
      "description": "Use this JSON editor online to change values in a tree or raw view, search and replace with regex, and convert to YAML, CSV, or XML. Free, and nothing is uploaded.",
      "isPartOf": {
        "@type": "WebSite",
        "name": "Prettify",
        "url": "https://prettify.tools"
      }
    },
    {
      "@type": "FAQPage",
      "mainEntity": [
        {
          "@type": "Question",
          "name": "Is this JSON editor online free?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Yes. Editing in the Tree, Raw, and Table views, search and replace, Sort Keys, and conversion are free, with no sign-up. Version history beyond the latest version, Diff, and jq are Pro."
          }
        },
        {
          "@type": "Question",
          "name": "Can I add or delete a key in the tree?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Not in the tree. The tree edits values and renames keys. To add a key or delete an item, open the Raw tab, select Edit, change the text, and select Save."
          }
        },
        {
          "@type": "Question",
          "name": "What happens if I type text that is not JSON into a value?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "The tree reads what you type. Numbers, true, false, null, arrays, and objects keep their type. Anything else becomes a string, so the document stays valid."
          }
        },
        {
          "@type": "Question",
          "name": "Can I undo a change?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Tree edits apply at once and have no undo button. In the Raw view, Cancel or Esc throws away your draft before you save. With Pro, you can reopen an earlier version from History."
          }
        },
        {
          "@type": "Question",
          "name": "Can I edit JSON that has comments?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Yes. The editor reads comments, trailing commas, and single quotes as JSONC and shows a note. A tree edit rewrites the document as plain JSON, and Copy Formatted and Download write plain JSON too, so the comments do not survive."
          }
        },
        {
          "@type": "Question",
          "name": "Is my JSON uploaded while I edit it?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "No. Each edit changes the document in your browser tab, and the editor saves it to History in your own browser storage. The text leaves your device only if you create a share link."
          }
        }
      ]
    }
  ]
}
```
