CodePrettify: JS, JSON, CSS & RSS Formatter
Extension Actions
- Extension status: Featured
Format, preview, and highlight JS, TS, JSON, JSONL, YAML, Markdown, CSS, and XML/RSS. Themes, tools, and line numbers.
CodePrettify turns raw developer files into an IDE-like experience the moment you open them β formatting, navigating, validating, diffing, and even executing JavaScript directly in the browser. Works on JSON, JSON Lines (NDJSON), JavaScript, TypeScript, CSS, YAML, XML, and RSS/Atom, for both web responses and local files.
π STRUCTURED DATA SUPPORT
β’ JSON, JSON Lines, XML, RSS, Atom, YAML (.yaml / .yml), and TypeScript (.ts / .mts / .cts)
β’ Collapsible JSON with breadcrumb navigation and JSON Path tools (autocomplete, validation, copy per result)
β’ Clickable URLs and import paths in JSON and XML
β’ Table View: sortable, searchable tables for JSON arrays of objects and repeating XML elements, with chunked loading for large datasets
π SMART AUTOMATION & FORMATTING
β’ Auto-format with minification detection so compressed files are beautified and readable ones are left unchanged
β’ Modern CodeMirror 6 engine with VS Code-inspired highlighting
β’ Code folding for functions, classes, objects, arrays, and XML blocks
β’ Bracket matching and a zero-flash loader that prevents raw-content flicker
π§ͺ JAVASCRIPT PLAYGROUND
β’ Runs real JavaScript in a sandboxed Web Worker with a configurable 1 / 5 / 15 s timeout
β’ Captures console.log/info/warn/error/debug and renders console.table as a real HTML table
β’ Reports return value, execution time, and full stack traces
β’ Optional βInclude {filename}β prepends the current file so you can call its top-level functions
β’ Autocomplete for functions, methods, classes, and variables from both the Playground and the current file, with parameter signatures
β’ Top-level await, Tab / Shift+Tab indent/dedent, and auto-persisted code across sessions
β’ Ctrl+Alt+P to open, Ctrl+Enter to run, Ctrl+Space to trigger autocomplete
π HTTP CLIENT
β’ Full Postman-style HTTP Client available on any HTTP/HTTPS page β not just JSON or RSS responses
β’ Compose requests with a method picker, URL field, and Send button, plus dedicated Params, Auth, Headers, and Body tabs
β’ Auth presets: No Auth, Bearer Token, Basic Auth, and API Key (header or query parameter)
β’ Body modes: None, JSON with inline validation, raw text, and x-www-form-urlencoded
β’ Save named requests, keep a reusable Saved collection plus per-URL History, and sync data across supported browsers
β’ Environments with {{variable}} interpolation in URLs, params, headers, auth, and body, with a live resolved-URL preview before sending
β’ Import existing cURL commands into the visual editor
β’ Copy requests as cURL, fetch(), or PowerShell Invoke-RestMethod
β’ Inspect responses in Body, Headers, Cookies, and Raw tabs
β’ HTTP request metadata now lives inside Statistics & Diagnostics instead of a separate HTTP Context popup
π§ NAVIGATION & LARGE FILES
β’ Document Navigator outline for JSON, JavaScript, and XML
β’ Syntax-aware code minimap rendered on an offscreen canvas
β’ Per-URL view state: fold state, search, highlights, and mode restored automatically
β’ Shareable Configuration URL restores the exact view for teammates
β’ Go To Line (Ctrl+G) remembers your last line number
π INSIGHTS & VALIDATION
β’ Diagnostics Panel with syntax status, warnings, and file-type-specific insights
β’ Statistics for file size, lines, JSON depth, JS functions/vars, CSS selectors, XML tags/attributes
β’ Built-in validation for JSON, JavaScript, TypeScript, CSS (line/column reporting), and XML
𧬠COMPARE & DIFF
β’ Full-screen split-view diff (Ctrl+Alt+D) with line-level diffing, synced scrolling, stats, and swap-sides
π SEARCH & INTERACTION
β’ Floating search (Ctrl+F) with live result counting
β’ Regex search via /pattern/flags
β’ Clickable URLs and relative import paths
π DATA INSPECTION
β’ Inline Base64 and JWT decoding with a dedicated copy modal
β’ Unix timestamp detection (seconds and milliseconds) with readable tooltips
β’ ISO 8601 and RFC 822 date tooltips in JSON, XML, and RSS
π REGEX PLAYGROUND
β’ Test regex patterns live against any open file or response
β’ Instant match highlighting in the main viewer with gimsuy flag controls
β’ Match list with counts, line/column locations, and one-click jump to each result
β’ Capture groups and named groups shown for the active match under the cursor
β’ Built-in regex guide plus example library for common real-world patterns
β’ Recent patterns are remembered, and Ctrl+Alt+R opens the playground instantly
π€ EXPORT & SHARING
β’ PNG export (visible viewport or full file) with syntax-colored rendering
β’ CSV export for JSON arrays of flat objects and RSS/Atom feed items
β’ HTML table export for any tabular JSON or XML
β’ Copy original, formatted, or minified code from one toolbar button
π REQUEST CONTEXT
β’ HTTP Context Panel: URL, content type, encoding, size hints, and timing
β’ cURL and fetch() command generator with cross-platform-safe quoting
π¨ CSS TOOLS
β’ Hex and RGB swatches with a built-in color picker (HEX, RGB, HSL copy)
π PRIVACY & SECURITY
β’ 100% local processing; no external requests, telemetry, or third-party runtime dependencies
β’ 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
β’ Safe for APIs, tokens, internal systems, and production data
π WORKS EVERYWHERE
β’ HTTP/HTTPS responses and local files (file:///)
β’ Detects JSON, YAML, TypeScript, and other types from Content-Type when the URL has no matching suffix
βοΈ CUSTOMIZABLE
β’ Light, Dark, Auto (system) themes
β’ Font size, indent size, line numbers, word wrap, minimap
β’ Per-file-type preferences; language dropdown; settings synced across devices using browser storage
β¨οΈ KEYBOARD SHORTCUTS
β’ Ctrl+B β Raw / Pretty
β’ Ctrl+Alt+C β Copy
β’ Ctrl+F β Search
β’ Ctrl+G β Go to Line
β’ Ctrl+Alt+T β Toggle toolbar
β’ Ctrl+Alt+D β Diff tool
β’ Ctrl+Alt+P β JavaScript Playground
β’ Ctrl+Alt+R β RegEx Playground
π LOCAL FILES
Enable βAllow access to file URLsβ in your browserβs extension settings for CodePrettify to use it on file:/// URLs.
Available in 14 languages: English, Norwegian, Swedish, Danish, German, Spanish, French, Italian, Japanese, Korean, Portuguese, Russian, Vietnamese, and Simplified Chinese.
Latest reviews
- Game Top
- Must have tool for anyone who codes!