Code
Everyday source-code chores: formatting, minifying, escaping, and converting snippets between languages and notations. The tools run entirely client-side, so proprietary code never leaves your browser.
- Source Map ViewerInspect Source Map v3 sources and mappings, look up generated and original positions, and download supplied source text.
- JavaScript FormatterFormat and beautify JavaScript and JSX with Prettier. Set line width, indent, semicolons, quotes and trailing commas; syntax errors show line and column.
- TypeScript FormatterFormat and beautify TypeScript and TSX with Prettier, with options for line width, indent, semicolons, quotes and trailing commas.
- CSS, SCSS & Less FormatterFormat CSS, SCSS, and Less with one editor; choose the language and adjust indentation, line width, and quote style.
- HTML FormatterBeautify HTML with Prettier, including inline script and style blocks. Respects inline vs block elements so rendered whitespace stays the same.
- Vue SFC FormatterFormat Vue single-file components with Prettier: template, script (JavaScript or TypeScript) and style blocks together.
- GraphQL FormatterFormat GraphQL queries, mutations, fragments and schema (SDL) with Prettier. Syntax errors show line and column.
- JavaScript MinifierMinify JavaScript with Terser: compress, mangle names, drop console calls, pick the output ES level, and see the size and gzip savings.
- CSS MinifierMinify CSS with csso: strip whitespace and comments, shorten values, merge duplicate rules, and see the size and gzip savings.
- HTML MinifierMinify HTML: collapse whitespace, drop comments, unquote attributes and minify inline JS and CSS, while pre, textarea and scripts stay intact.
- SVG OptimizerShrink SVG files with SVGO: remove editor metadata, round numbers, simplify paths. Compare before and after, with toggles for ids, viewBox and precision.
- TypeScript to JavaScript CompilerTranspile TypeScript or TSX to JavaScript in the browser with target, module, JSX and decorator options.
- TypeScript PlaygroundEdit TypeScript with live type errors, see the emitted JavaScript, and run it in a sandbox.
- JavaScript PlaygroundRun JavaScript in an isolated sandbox with console.log, console.table, error line numbers and a Stop button.
- AST ExplorerParse JavaScript, JSX or TypeScript and explore the syntax tree, with source ranges linked both ways.
- Bundle Metafile ViewerVisualize an esbuild metafile or Rollup/Vite stats as a treemap or sunburst and find the largest modules.
- HTML to JSX ConverterConvert HTML to JSX: className, htmlFor, style objects, self-closing tags, comments and event handlers.
- HTML to Vue Template ConverterConvert HTML to a Vue single-file component template with @event listeners and extracted styles.
- SVG to JSX React ComponentTurn an SVG into a React component with size and color props, camelCased attributes and optional TypeScript.
- SVG to Vue ComponentTurn an SVG into a Vue 3 single-file component with size and color props.
- CSS to JavaScript ObjectConvert CSS to a JavaScript style object with camelCase properties, nested rules and unitless numbers.
- JavaScript Object to CSSConvert a CSS-in-JS style object to plain CSS, flattened or with native nesting, without running your code.
- JSON to Code ConverterGenerate types, validators, and language models from a JSON sample for twelve code targets.
- JSON to GraphQL Types ConverterInfer GraphQL SDL types from a JSON sample, including nested objects, lists, nullability, and scalar types.