View JS N

About ViewJSON

ViewJSON is a free online JSON viewer and formatter built for developers who work with APIs that return Base64-encoded media. Unlike traditional JSON formatters that treat every string value as plain text, ViewJSON automatically detects Base64-encoded content and renders it as actual images, audio players, video players, or PDF previews — directly inside the JSON structure.

It supports over 15 media formats including PNG, JPEG, WebP, MP3, WAV, MP4, and PDF. Detection works by decoding just the first 64 bytes of each string and matching against known file format signatures (magic numbers), so even a 100MB Base64 string is identified in under a millisecond.

The editor also handles malformed input gracefully — trailing commas, comments, and unquoted keys are silently fixed before parsing. If you work with JSONL (newline-delimited JSON), each line is parsed independently so a single bad record won't block the rest.

Everything runs locally in your browser. Your data is never uploaded to any server — not for processing, not for analytics, not for anything.

Why We Built This

We spend our days building wrappers for multimodal AI APIs — OCR, text-to-speech, speech-to-text, vision models like GPT-4o and Qwen-VL, image generation. Basically everything that takes or returns Base64.

"We were testing a text-to-speech pipeline that generates audio in multiple voices. Each response contained 4–6 Base64 audio clips. Our workflow was: find the string, copy it, open an online decoder, paste, hit play. Repeat for the next voice. Across a dozen prompt variations, that's roughly 60 round-trips to a decoder."

The input side was just as painful. We were testing a batch OCR pipeline that returned 47 cropped images in one JSON response — 47 Base64 strings that we had to decode one by one just to check if the crops looked right. When a prompt variation produced bad results, there was no quick way to tell which images were off.

We started asking — what would it take to auto-detect which strings are media and render them inline? That question led to ViewJSON: a tool where you paste your JSON and immediately see every image, hear every audio clip, and watch every video, without leaving the page.

Use Cases

Debugging AI API Responses

When your text-to-speech, image generation, or vision model API returns Base64-encoded media, you need to know what's actually inside those strings. Paste the entire JSON response into ViewJSON and every Base64 audio clip, image, or video renders inline — no more round-trips to external decoders.

Demo: Debugging AI API Responses

Preparing Multimodal API Payloads

Calling an OCR or vision model? Just paste your image into the editor. ViewJSON shows the image preview while storing the Base64 string underneath. When you copy, you get the ready-to-use Base64 payload — no manual file-to-Base64 conversion step needed.

Demo: Preparing Multimodal API Payloads

Reviewing API Test History

Tools like Postman and Fiddler save your request history, but Base64 payloads show up as walls of unreadable characters. Paste that history into ViewJSON and instantly see the actual images, audio, or documents you sent and received during testing. Useful when you need to revisit old test runs or compare outputs across different API versions.

Sharing JSON with Your Team

Need to show a colleague a specific API response? ViewJSON compresses your JSON with pako (zlib) and encodes it into a URL. No file uploads, no cloud storage, no expiring links. The recipient opens the link and sees the formatted data with full media preview — all decoded client-side.

Tech & Privacy

100% Client-Side

All JSON processing and media rendering happens in your browser. Nothing is ever sent to a server. Even the sharing feature encodes data into the URL itself.

Built with Astro + React

Islands architecture for minimal JavaScript. Only interactive components load client-side code.

CodeMirror 6 Editor

Professional-grade code editor with syntax highlighting, folding, search, and bracket matching. Handles files over 10MB without freezing.

Cloudflare Pages

Deployed globally on Cloudflare's edge network for fast load times worldwide.

Zero Tracking

No cookies, no fingerprinting, no third-party analytics collecting your data. Your JSON stays on your machine.

Contact

Questions, feedback, or feature requests? Reach us at support@viewjson.net .