1<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><title data-next-head="">JSON Formatter Online - Prettify / Minify / Verify JSON</title><link rel="canonical" href="https://json-5.com"/><meta name="description" content="Looking for a VS Code-like JSON5 editor that offers an error-free editing experience? Look no further than our JSON editor, which is designed to be compatible with both JSON and JSON5. With our editor, you can easily create, edit, and manage your JSON files with ease, all while enjoying the familiar and intuitive interface of VS Code. " data-next-head=""/><link rel="icon" type="image/png" href="/img/favicon.png"/><link rel="preconnect" href="https://g.alicdn.com"/><link rel="preconnect" href="https://cdn.jsdelivr.net"/><link rel="preload" href="/_next/static/css/2ee86164020245fa.css" as="style"/><link rel="preload" href="/_next/static/css/2d42f316e3b8ba19.css" as="style"/>
1<script src="https://g.alicdn.com/code/lib/react/18.2.0/umd/react.development.js" defer=""></script>
1<script src="https://g.alicdn.com/code/lib/react-dom/18.2.0/umd/react-dom.development.js" defer=""></script>
1<script src="https://g.alicdn.com/code/lib/antd/4.23.4/antd.min.js" defer=""></script>
1<link rel="stylesheet" type="text/css" href="https://g.alicdn.com/code/lib/antd/4.23.4/antd.min.css"/>
1<script id="init" data-nscript="beforeInteractive">if(location.protocol==='http:' && !location.hostname.startsWith('local.')) {location.protocol='https:'};</script>
1<link rel="stylesheet" href="/_next/static/css/2ee86164020245fa.css" data-n-g=""/><link rel="stylesheet" href="/_next/static/css/2d42f316e3b8ba19.css" data-n-p=""/><noscript data-n-css=""></noscript>
1<script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script>
1<script src="/_next/static/chunks/webpack-7281513e22c2ca94.js" defer=""></script>
1<script src="/_next/static/chunks/framework-a1841b53f11935ed.js" defer=""></script>
1<script src="/_next/static/chunks/main-3c957060704ecd49.js" defer=""></script>
1<script src="/_next/static/chunks/pages/_app-936e819cdd2ed7e2.js" defer=""></script>
1<script src="/_next/static/chunks/95329421-fb9d56b996b7eaba.js" defer=""></script>
1<script src="/_next/static/chunks/871-9b53b270216c31a5.js" defer=""></script>
1<script src="/_next/static/chunks/305-4663d7a68c9be603.js" defer=""></script>
1<script src="/_next/static/chunks/533-23895db2bc69de6c.js" defer=""></script>
1<script src="/_next/static/chunks/673-963a14522ca14248.js" defer=""></script>
1<script src="/_next/static/chunks/976-91192f8e65c7f142.js" defer=""></script>
1<script src="/_next/static/chunks/pages/index-ed3c09fc5d81f28b.js" defer=""></script>
1<script src="/_next/static/W-AYakALX2NXbgX_1iN6I/_buildManifest.js" defer=""></script>
1<script src="/_next/static/W-AYakALX2NXbgX_1iN6I/_ssgManifest.js" defer=""></script>
1</head><body><link rel="preload" as="image" href="/img/json-logo.jpg"/><div id="__next"><div class="css-mncuj7 ant-app"><div class="root"><div class="json-editor-container"><div class="json-toolbar"><div class="ant-layout layout css-mncuj7"><header class="ant-layout-header css-mncuj7" style="display:flex;align-items:center"><a href="/json-vs-json5" aria-describedby="_R_1a6_"><img fetchpriority="high" class="json-logo" src="/img/json-logo.jpg"/></a><ul class="ant-menu-overflow ant-menu ant-menu-root ant-menu-horizontal ant-menu-dark css-mncuj7" role="menu" tabindex="0" data-menu-list="true"><li class="ant-menu-overflow-item ant-menu-item" style="opacity:1;order:0" role="menuitem" tabindex="-1" pathname="/" aria-describedby="_R_ama6_"><span role="img" aria-label="appstore" class="anticon anticon-appstore ant-menu-item-icon"><svg viewBox="64 64 896 896" focusable="false" data-icon="appstore" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"></path></svg></span><span class="ant-menu-title-content">JSON5 Editor(Formatter)</span></li><li class="ant-menu-overflow-item ant-menu-item" style="opacity:1;order:1" role="menuitem" tabindex="-1" pathname="/jsoncompare" aria-describedby="_R_ima6_"><span role="img" aria-label="diff" class="anticon anticon-diff ant-menu-item-icon"><svg viewBox="64 64 896 896" focusable="false" data-icon="diff" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M476 399.1c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1V484h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H420v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V540h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H476v-84.9zM560.5 704h-225c-4.1 0-7.5 3.2-7.5 7v42c0 3.8 3.4 7 7.5 7h225c4.1 0 7.5-3.2 7.5-7v-42c0-3.8-3.4-7-7.5-7zm-7.1-502.6c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM664 888H232V264h282.2L664 413.8V888zm190.2-581.4L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23z"></path></svg></span><span class="ant-menu-title-content">JSON Compare</span></li><li class="ant-menu-overflow-item ant-menu-item" style="opacity:1;order:2" role="menuitem" tabindex="-1" pathname="/json-to-typescript" aria-describedby="_R_qma6_"><span role="img" aria-label="codepen" class="anticon anticon-codepen ant-menu-item-icon"><svg viewBox="64 64 896 896" focusable="false" data-icon="codepen" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M911.7 385.3l-.3-1.5c-.2-1-.3-1.9-.6-2.9-.2-.6-.4-1.1-.5-1.7-.3-.8-.5-1.7-.9-2.5-.2-.6-.5-1.1-.8-1.7-.4-.8-.8-1.5-1.2-2.3-.3-.5-.6-1.1-1-1.6-.8-1.2-1.7-2.4-2.6-3.6-.5-.6-1.1-1.3-1.7-1.9-.4-.5-.9-.9-1.4-1.3-.6-.6-1.3-1.1-1.9-1.6-.5-.4-1-.8-1.6-1.2-.2-.1-.4-.3-.6-.4L531.1 117.8a34.3 34.3 0 00-38.1 0L127.3 361.3c-.2.1-.4.3-.6.4-.5.4-1 .8-1.6 1.2-.7.5-1.3 1.1-1.9 1.6-.5.4-.9.9-1.4 1.3-.6.6-1.2 1.2-1.7 1.9-1 1.1-1.8 2.3-2.6 3.6-.3.5-.7 1-1 1.6-.4.7-.8 1.5-1.2 2.3-.3.5-.5 1.1-.8 1.7-.3.8-.6 1.7-.9 2.5-.2.6-.4 1.1-.5 1.7-.2.9-.4 1.9-.6 2.9l-.3 1.5c-.2 1.5-.3 3-.3 4.5v243.5c0 1.5.1 3 .3 4.5l.3 1.5.6 2.9c.2.6.3 1.1.5 1.7.3.9.6 1.7.9 2.5.2.6.5 1.1.8 1.7.4.8.7 1.5 1.2 2.3.3.5.6 1.1 1 1.6.5.7.9 1.4 1.5 2.1l1.2 1.5c.5.6 1.1 1.3 1.7 1.9.4.5.9.9 1.4 1.3.6.6 1.3 1.1 1.9 1.6.5.4 1 .8 1.6 1.2.2.1.4.3.6.4L493 905.7c5.6 3.8 12.3 5.8 19.1 5.8 6.6 0 13.3-1.9 19.1-5.8l365.6-243.5c.2-.1.4-.3.6-.4.5-.4 1-.8 1.6-1.2.7-.5 1.3-1.1 1.9-1.6.5-.4.9-.9 1.4-1.3.6-.6 1.2-1.2 1.7-1.9l1.2-1.5 1.5-2.1c.3-.5.7-1 1-1.6.4-.8.8-1.5 1.2-2.3.3-.5.5-1.1.8-1.7.3-.8.6-1.7.9-2.5.2-.5.4-1.1.5-1.7.3-.9.4-1.9.6-2.9l.3-1.5c.2-1.5.3-3 .3-4.5V389.8c-.3-1.5-.4-3-.6-4.5zM546.4 210.5l269.4 179.4-120.3 80.4-149-99.6V210.5zm-68.8 0v160.2l-149 99.6-120.3-80.4 269.3-179.4zM180.7 454.1l86 57.5-86 57.5v-115zm296.9 358.5L208.3 633.2l120.3-80.4 149 99.6v160.2zM512 592.8l-121.6-81.2L512 430.3l121.6 81.2L512 592.8zm34.4 219.8V652.4l149-99.6 120.3 80.4-269.3 179.4zM843.3 569l-86-57.5 86-57.5v115z"></path></svg></span><span class="ant-menu-title-content">JSON to TypeScript</span></li><li class="ant-menu-overflow-item ant-menu-item" style="opacity:1;order:3" role="menuitem" tabindex="-1" pathname="/json-to-java" aria-describedby="_R_12ma6_">
1<span role="img" aria-label="codepen" class="anticon anticon-codepen ant-menu-item-icon"><svg viewBox="64 64 896 896" focusable="false" data-icon="codepen" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M911.7 385.3l-.3-1.5c-.2-1-.3-1.9-.6-2.9-.2-.6-.4-1.1-.5-1.7-.3-.8-.5-1.7-.9-2.5-.2-.6-.5-1.1-.8-1.7-.4-.8-.8-1.5-1.2-2.3-.3-.5-.6-1.1-1-1.6-.8-1.2-1.7-2.4-2.6-3.6-.5-.6-1.1-1.3-1.7-1.9-.4-.5-.9-.9-1.4-1.3-.6-.6-1.3-1.1-1.9-1.6-.5-.4-1-.8-1.6-1.2-.2-.1-.4-.3-.6-.4L531.1 117.8a34.3 34.3 0 00-38.1 0L127.3 361.3c-.2.1-.4.3-.6.4-.5.4-1 .8-1.6 1.2-.7.5-1.3 1.1-1.9 1.6-.5.4-.9.9-1.4 1.3-.6.6-1.2 1.2-1.7 1.9-1 1.1-1.8 2.3-2.6 3.6-.3.5-.7 1-1 1.6-.4.7-.8 1.5-1.2 2.3-.3.5-.5 1.1-.8 1.7-.3.8-.6 1.7-.9 2.5-.2.6-.4 1.1-.5 1.7-.2.9-.4 1.9-.6 2.9l-.3 1.5c-.2 1.5-.3 3-.3 4.5v243.5c0 1.5.1 3 .3 4.5l.3 1.5.6 2.9c.2.6.3 1.1.5 1.7.3.9.6 1.7.9 2.5.2.6.5 1.1.8 1.7.4.8.7 1.5 1.2 2.3.3.5.6 1.1 1 1.6.5.7.9 1.4 1.5 2.1l1.2 1.5c.5.6 1.1 1.3 1.7 1.9.4.5.9.9 1.4 1.3.6.6 1.3 1.1 1.9 1.6.5.4 1 .8 1.6 1.2.2.1.4.3.6.4L493 905.7c5.6 3.8 12.3 5.8 19.1 5.8 6.6 0 13.3-1.9 19.1-5.8l365.6-243.5c.2-.1.4-.3.6-.4.5-.4 1-.8 1.6-1.2.7-.5 1.3-1.1 1.9-1.6.5-.4.9-.9 1.4-1.3.6-.6 1.2-1.2 1.7-1.9l1.2-1.5 1.5-2.1c.3-.5.7-1 1-1.6.4-.8.8-1.5 1.2-2.3.3-.5.5-1.1.8-1.7.3-.8.6-1.7.9-2.5.2-.5.4-1.1.5-1.7.3-.9.4-1.9.6-2.9l.3-1.5c.2-1.5.3-3 .3-4.5V389.8c-.3-1.5-.4-3-.6-4.5zM546.4 210.5l269.4 179.4-120.3 80.4-149-99.6V210.5zm-68.8 0v160.2l-149 99.6-120.3-80.4 269.3-179.4zM180.7 454.1l86 57.5-86 57.5v-115zm296.9 358.5L208.3 633.2l120.3-80.4 149 99.6v160.2zM512 592.8l-121.6-81.2L512 430.3l121.6 81.2L512 592.8zm34.4 219.8V652.4l149-99.6 120.3 80.4-269.3 179.4zM843.3 569l-86-57.5 86-57.5v115z"></path></svg></span><span class="ant-menu-title-content">JSON to Java</span></li><li class="ant-menu-overflow-item ant-menu-submenu ant-menu-submenu-horizontal" style="opacity:1;order:4" role="none"><div role="menuitem" class="ant-menu-submenu-title" tabindex="-1" aria-expanded="false" aria-haspopup="true"><span role="img" aria-label="github" class="anticon anticon-github ant-menu-item-icon"><svg viewBox="64 64 896 896" focusable="false" data-icon="github" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"></path></svg></span><span class="ant-menu-title-content">Github</span><i class="ant-menu-submenu-arrow"></i></div></li><li class="ant-menu-overflow-item ant-menu-overflow-item-rest ant-menu-submenu ant-menu-submenu-horizontal" style="opacity:0;height:0;overflow-y:hidden;order:9007199254740991;pointer-events:none;position:absolute" aria-hidden="true" role="none"><div role="menuitem" class="ant-menu-submenu-title" tabindex="-1" aria-expanded="false" aria-haspopup="true"><span role="img" aria-label="ellipsis" class="anticon anticon-ellipsis"><svg viewBox="64 64 896 896" focusable="false" data-icon="ellipsis" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"></path></svg></span><i class="ant-menu-submenu-arrow"></i></div></li></ul><div style="display:none" aria-hidden="true"></div></header></div></div><div class="ant-tabs ant-tabs-top ant-tabs-editable ant-tabs-small ant-tabs-card ant-tabs-editable-card component-draggable-tabs css-mncuj7"><div role="tablist" aria-orientation="horizontal" class="ant-tabs-nav"><div class="ant-tabs-nav-wrap"><div class="ant-tabs-nav-list" style="transform:translate(0px, 0px)"><button type="button" class="ant-tabs-nav-add" aria-label="Add tab"><span role="img" aria-label="plus" class="anticon anticon-plus"><svg viewBox="64 64 896 896" focusable="false" data-icon="plus" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"></path><path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"></path></svg></span></button><div class="ant-tabs-ink-bar ant-tabs-ink-bar-animated"></div></div></div><div class="ant-tabs-nav-operations ant-tabs-nav-operations-hidden"><button type="button" class="ant-tabs-nav-more" style="visibility:hidden;order:1" aria-haspopup="listbox" aria-controls="null-more-popup" id="null-more" aria-expanded="false"><span role="img" aria-label="ellipsis" class="anticon anticon-ellipsis"><svg viewBox="64 64 896 896" focusable="false" data-icon="ellipsis" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"></path></svg></span></button><button type="button" class="ant-tabs-nav-add" aria-label="Add tab"><span role="img" aria-label="plus" class="anticon anticon-plus"><svg viewBox="64 64 896 896" focusable="false" data-icon="plus" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"></path><path d="M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"></path></svg></span></button></div></div><div class="ant-tabs-content-holder"><div class="ant-tabs-content ant-tabs-content-top"></div></div></div><div class="editor-container placeholder"><h1>JSON5: Online Editor for Formatting & Minification <span role="img" aria-label="loading" class="anticon anticon-loading anticon-spin"><svg viewBox="0 0 1024 1024" focusable="false" data-icon="loading" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"></path></svg></span> </h1><p>A JSON5 formatting tool is a program, website, or browser extension that helps you make your JSON5 code easier to read and understand. JSON5 is a format very similar to JSON, but it allows for some extra features that can make working with it by hand more convenient.</p><p>A JSON5 minification tool is essentially the opposite of a formatting tool. Instead of making your JSON5 code easier to read by humans, it aims to reduce its f
1ile size for efficiency. This is particularly useful for situations where bandwidth or storage space is limited, such as in web applications.</p></div></div></div></div></div>
1<script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/","query":{},"buildId":"W-AYakALX2NXbgX_1iN6I","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[{"src":"//www.googletagmanager.com/gtag/js?id=GT-K4Z74W4","strategy":"lazyOnload","crossOrigin":"anonymous"},{"id":"google-analytics","strategy":"lazyOnload","crossOrigin":"anonymous","children":"\n if(!location.hostname.startsWith('local.')) {\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', 'GT-K4Z74W4'); \n }\n "}]}</script>
1</body></html> 2<!-- 9/29/2026, 1:16:23 PM -->
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.