Skip to main content
Back to projects

PrettyJSON

Active

Built with

Overview

PrettyJSON is a free online JSON formatter and validator built for developers who work with JSON daily. It formats and validates in real-time as you type, powered by Monaco Editor (the same editor behind VS Code). The tool goes beyond basic formatting — it supports diffing, format conversion, shareable links, and works fully offline as a PWA.


What Users Can Do

  • Format & validate JSON in real-time — Instant feedback as you type with clear error messages
  • Pretty print or minify — Toggle between beautified and compact output
  • Compare two JSON objects — Side-by-side diff view to spot differences
  • Convert formats — Export to YAML, CSV, or TypeScript interfaces
  • Import from anywhere — Paste, upload a file, drag & drop, or fetch directly from a URL
  • Explore with tree view — Interactive, collapsible JSON tree with search
  • Share with a link — Generate expiring URLs (1 hour to 1 week) to share formatted JSON
  • Export as JSON5 — Support for comments and trailing commas
  • Sort keys alphabetically — Keep objects consistent and easier to compare
  • Use keyboard shortcutsCtrl/Cmd + Enter to format, Ctrl/Cmd + M to minify
  • Install as an app — Works offline as a PWA on mobile and desktop

Why I Built This

Most online JSON formatters are cluttered with ads, lack advanced features, or don't work offline. I wanted a clean, fast tool that covers the full workflow — format, validate, compare, convert, and share — without leaving the browser. Building it as a PWA means it works even without an internet connection, which is useful when working with local APIs or on the go.


Tech Stack

  • Next.js 16, TypeScript
  • Monaco Editor
  • Tailwind CSS 4, shadcn/ui
  • Zustand (state management)
  • nuqs (URL state)
  • Neon PostgreSQL + Drizzle ORM (share links)

Set your heart upon your work, but never on its reward.

Bhagavad Gita