JSON Toolbox LogoJSONToolbox

Developers & Embed

Use the JSON Toolbox editor in your own project — Vue 3 component, Web Component, or plain script tag. Free, open source, and 100% client-side.

Loading...
Working with JSON in the browser? Try our extensionTurn raw JSON pages into an editable viewer with search, table view and CSV export — for Chrome, Edge and Firefox.Learn more & download

Get the package

npm install @kbmjj123/json-editor
# or
pnpm add @kbmjj123/json-editor

Peer dependencies (Vue 3 + CodeMirror 6) must be installed by the host:

npm install vue @codemirror/commands @codemirror/lang-json @codemirror/language @codemirror/state @codemirror/view @lezer/highlight

Vue 3

<script setup lang="ts">
import { ref } from 'vue'
import { JsonEditor } from '@kbmjj123/json-editor'
import '@kbmjj123/json-editor/style.css'

const value = ref('{"hello": "world"}')
</script>

<template>
  <JsonEditor v-model="value" view="both" theme="auto" locale="en" />
</template>

Web Component

import { registerJsonEditor } from '@kbmjj123/json-editor/wc'
import '@kbmjj123/json-editor/style.css'

registerJsonEditor()
<json-editor
  value='{"hello": "world"}'
  view="both"
  theme="light"
  height="320px"
></json-editor>

CDN / script tag

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@kbmjj123/json-editor@latest/dist/json-editor.iife.css">
<script src="https://cdn.jsdelivr.net/npm/@kbmjj123/json-editor@latest/dist/json-editor.iife.js"></script>

<json-editor value='{"hello": "world"}' theme="dark"></json-editor>

The CDN bundle is also available on unpkg.

Features

  • CodeMirror 6 editor with JSON syntax highlighting and line numbers
  • Live validation with error line location and one-click jump
  • Format / minify toolbar actions
  • Read-only tree view with collapse/expand, search, copy path/value
  • Light / dark / auto theming
  • Optional attribution badge for a natural backlink

Open-source projects

JSON Toolbox is maintained as four separate repositories. Each project is self-contained and links back to this site.

RepositoryWhat it isSource
SiteThis Nuxt 4 site: client-side tools to format, validate, convert and view JSONGitHub
@kbmjj123/json-editorThe editor library published on npm — Vue 3 component, Web Component or CDN scriptGitHub
Browser extensionChrome/Edge/Firefox extension that turns raw JSON pages into an editable viewer with search, table view and CSV exportDetails & downloads · GitHub
Obsidian pluginRich JSON/YAML viewer for Obsidian with 14 kinds of inline previewsGitHub

Source & license