Make Raw Code
Instantly Readable

Open a raw API response, minified bundle, or feed and start working immediately. CodePrettify formats the document, surfaces response details, and gives you fast ways to inspect, compare, copy, export, and even run JavaScript against what you are looking at — all without leaving the browser.

Built for JSON payloads, CDN bundles, XML feeds, YAML configs, and local file:// documents.

Now On Windows

CodePrettify for Windows is live on Microsoft Store

Install the desktop app when you want the same formatting, validation, search, diff, and export workflow for local files with native tabs and menus.

Microsoft Get it on Microsoft Store

๐Ÿ“„ Supported Code Formats

JavaScript .js .mjs .cjs TypeScript .ts .mts .cts JSON .json .jsonl CSS .css YAML .yaml .yml XML .xml RSS/Atom .rss .atom

Detects supported files by URL and HTTP content type, including local file:// resources when file access is enabled.

๐ŸŒ 14 Interface Languages

English Norwegian Swedish Danish German French Spanish Italian Portuguese Russian Chinese Japanese Korean Vietnamese

Keep the UI on auto-detect or choose your preferred language, theme, and file-type behavior from settings.

๐Ÿ“บ See It In Action

Features

Built For Real Debugging Work

Move from raw response to useful insight in seconds with tools designed for inspection, comparison, and cleanup.

๐Ÿš€

Open It And Start Reading

CodePrettify recognizes supported raw-code resources and turns them into a usable workspace immediately.

  • Detects supported resources by URL and HTTP content type
  • Supports JavaScript, TypeScript, JSON, JSONL, CSS, YAML, XML, and RSS/Atom feeds
  • Intelligent minification detection formats dense files automatically
  • Switch between original, formatted, minified, and raw views without a clumsy page refresh
๐Ÿ›ก๏ธ

Spot Problems Faster

See what is wrong with the document and what came back from the server in the same place.

  • JSON syntax errors include exact line references
  • JavaScript and CSS validation provide instant feedback
  • Diagnostics panel shows syntax status, warnings, and file-type-specific insights
  • HTTP context reveals the request URL, content type, encoding, size details, and timing hints
  • Statistics panels surface file size, line count, and document-specific metrics
๐Ÿ“‚

Inspect Structured Data Without Friction

Query, decode, and inspect large structured payloads without losing your place.

  • Collapsible arrays and objects for easy navigation
  • JSON path inspector and query tools with autocomplete, validation, and copy actions
  • Table View renders JSON arrays and XML or RSS data as sortable, searchable tables
  • Clickable URLs, timestamp tooltips, and inline decode helpers speed up inspection
  • Base64 and JWT decoding opens a dedicated read-only modal for safer analysis
๐Ÿงญ

Navigate, Compare & Export

Move through large documents, compare revisions, copy the right variant, and export the exact format you need.

  • Document Navigator and syntax-aware code minimap make long files easy to scan and jump through
  • Full-screen side-by-side diff (Ctrl+Alt+D) with synchronized scrolling, line stats, and swap sides
  • Advanced search with regex (/pattern/flags), result counting, and Go To Line (Ctrl+G)
  • Copy original, formatted, or minified code, and export as CSV, HTML table, or PNG image
  • Generate copy-ready cURL and fetch() commands and share a view-state URL with teammates
๐Ÿงช

Run JavaScript Right There

A sandboxed Playground modal lets you prototype, debug, and poke at the file you are looking at without ever leaving the tab.

  • Runs code in an isolated Web Worker with configurable 1 / 5 / 15 second timeouts and top-level await
  • Captures console.log, info, warn, error, debug, and console.table (rendered as a real HTML table)
  • Optional “Include filename” mode brings the current file into scope so you can call its top-level functions
  • Autocomplete for functions, methods, classes, and variables with parameter signatures
  • Code, timeout, and preferences autosave so you can return to your scratchpad from any page
๐Ÿ”’

Fits Your Workflow And Stays Local

Your code stays on your machine, and the viewer adapts to how you work.

  • Everything runs client-side in your browser
  • No servers, no external processing, and no code leaves your session
  • Playground code runs in a null-origin sandbox iframe and a fresh Web Worker per execution — no access to the host page, the extension, or the network
  • Choose Light, Dark, or Auto theme and override the UI language when needed
  • Adjust line numbers, word wrap, toolbar, minimap, and file-type-specific behaviors
Efficiency

โŒจ๏ธ Keyboard Shortcuts

Master CodePrettify with these quick commands

Ctrl + B Toggle Raw/Pretty
Ctrl + Alt + C Copy to Clipboard
Ctrl + F Open Search
Ctrl + G Go to Line
Ctrl + Alt + D Compare / Diff View
Ctrl + Alt + P JavaScript Playground
Ctrl + Alt + T Toggle Toolbar
Ctrl + Alt + R Regex Playground
Ctrl + Enter Run Playground Code
Ctrl + Space Force Autocomplete
๐Ÿ“

Note for Local Files

To use CodePrettify with local files (e.g., file:///C:/code/data.json), you must enable "Allow access to file URLs" in your browser's extension management page, such as chrome://extensions or edge://extensions.

Privacy & Access

Why The Extension Needs Page Access

CodePrettify reads supported raw-code pages in the current tab so it can format, validate, compare, search, and export the file you are already viewing. That handling stays local in your browser and is limited to the user-facing features described on this site, in the product UI, and in the browser extension marketplace listings.

What it uses

Supported page content, the resource URL, browser-reported content type, character encoding, response-size hints, timing hints, and local settings.

What it does not do

It does not send your file contents to FixQuotes, sell browsing data, inject ads, or read request headers, response headers, cookies, or request bodies.

Rare network retry

If a JavaScript file looks incorrectly decoded with a legacy charset, CodePrettify may re-request the same URL directly from the site you are on to recover valid UTF-8 text.

Full details are in the privacy policy.