Every format, one private tool
PasteKit formats, validates and converts 58 formats and 48 conversion pairs. Parsing happens in a Web Worker on your machine, so large files stay smooth and your data is never sent anywhere — verify it in your browser's network panel, or read how the Content Security Policy enforces it.
Popular
- JSONLossless streaming JSON parser and printer
- JSON5 / JSONCPrettier (json5 / jsonc), json5, jsonc-parser
- YAMLyaml (eemeli) — YAML 1.2 and 1.1
- XMLBuilt-in XML tokenizer and printer (DTD entities never expanded)
- CSVPapa Parse
- TSVPapa Parse
- TOMLtaplo (WASM) for layout, smol-toml for validation
- SQLsql-formatter
- HTMLPrettier; html-minifier-terser for minify
- Markdown (GFM)Prettier; markdown-it for the live preview
- CSSPrettier; csso for minify
- JavaScript / JSXPrettier; terser for minify
- TypeScript / TSXPrettier
More formats
- JSON Lines / NDJSONLossless line-by-line JSON parser
- SCSSPrettier
- LessPrettier
- GraphQLPrettier; graphql-js for minify
- INIBuilt-in INI parser and printer
- Java .propertiesBuilt-in .properties parser and printer
- .env (dotenv)Built-in dotenv parser and printer
- Dockerfiledprint-plugin-dockerfile (WASM)
- Nginx configBuilt-in nginx config printer
- Apache configBuilt-in Apache config printer
- PythonRuff formatter (WASM)
- Gogofmt (WASM)
- Javaprettier-plugin-java; google-java-format (WASM)
- PHP@prettier/plugin-php
- C / C++ / Objective-Cclang-format (WASM)
- Shell / Bashshfmt (WASM)
- Vue single-file componentPrettier
- Angular templatePrettier (angular parser)
- Handlebars / GlimmerPrettier (glimmer parser)
- LuaStyLua (WASM)
- Dartdart_style (WASM)
- Zigzig fmt (WASM)
- JWT decoderjose (decode only; verification is opt-in)
- Base64 / Base64URLNative decoder + format auto-detect
- URL / query stringWHATWG URL + URLSearchParams
- HTTP request / response headersBuilt-in HTTP message parser
- Unified diff / patchdiff2html
- SVGBuilt-in XML printer; SVGO for optimise
Specialist
- Rustrustfmt (WASM)
- C#CSharpier (WASM)
- Kotlinktfmt (WASM)
- Swiftswift-format (WASM)
- RubySyntax Tree on CRuby (WASM)
- HCL / TerraformBuilt-in HCL parser and printer (terraform fmt style)
- Protocol Buffers (.proto)clang-format (WASM, proto mode)
- LaTeXtex-fmt (WASM)
- Log lines (Apache, Nginx, JSON logs)Built-in log parsers (combined, common, syslog, JSON)
- Stack traces (Java, Python, .NET, JavaScript)Built-in stack trace parsers
- DAX (Power BI)Built-in DAX tokenizer and printer
- Power Query M@microsoft/powerquery-formatter
- KQL (Kusto Query Language)Built-in KQL tokenizer and printer
- Cypher (Neo4j)Built-in Cypher tokenizer and printer
- MongoDB shell queriesPrettier (JavaScript parser)
- Cron expression explainercronstrue + cron-parser
- Regular expression explainerregexp-tree + railroad diagrams
Compare & validate
- JSON DiffCompare two JSON documents by structure: added, removed, changed and moved values, side by side, as JSON Patch.
- JSON PatchApply or generate RFC 6902 JSON Patch and RFC 7396 merge patches; failing operations point to their line.
- JSON Schema ValidatorValidate JSON or YAML against JSON Schema draft-04 to 2020-12, or an OpenAPI file; generate a schema from data.
Encode & sign
- JWT EncoderBuild and sign JSON Web Tokens with HS, RS, PS, ES or EdDSA keys, or generate a test key pair.
- JSON Escape / UnescapeEscape text for a JSON string literal or unescape it back, with \uXXXX and \/ options and located errors.
- JSON StringifyTurn JSON into a string literal for JSON, JavaScript, Python, Java or C#, or decode a stringified string.
Reference
Inspect & query
- JSON Path FinderClick any value to get its JSONPath, jq, JavaScript, Python and JSON Pointer path; search keys and test queries.
- JSON Size AnalyzerSee which paths, fields and repeated keys make a JSON payload big, with minified vs pretty byte counts.
- JSON Token CounterCount GPT tokens for JSON as pasted, minified, pretty, YAML and CSV to find the cheapest form to send to an LLM.
Repair & view
- JSON RepairFix broken JSON from LLMs, logs and JavaScript: code fences, quotes, commas, comments, truncation, each fix listed.
- JSON ViewerExplore large JSON as a collapsible tree with type counts, search, depth control and one-click paths.
- JSON Table ViewerShow an array of objects as a sortable, filterable table; flatten nested fields; export CSV, Excel or Markdown.
- JSON SortSort JSON keys A→Z or Z→A, case-insensitive or natural, at every level; optionally sort arrays.
Spreadsheets
Converters
- JSON → YAML
- JSON → XML
- JSON → CSV
- JSON → TOML
- JSON → TypeScript
- JSON → Go
- JSON → Python
- JSON → Java
- JSON → Kotlin
- JSON → C#
- JSON → Rust
- JSON → Swift
- JSON → PHP
- JSON → JSON Schema
- JSON → SQL
- JSON → JSON Lines
- YAML → JSON
- YAML → TOML
- YAML → .env
- XML → JSON
- XML → YAML
- CSV → JSON
- CSV → Markdown
- CSV → SQL
- CSV → HTML
- TSV → JSON
- CSV → TSV
- TSV → CSV
- Markdown → HTML
- Markdown → PDF
- HTML → Markdown
- HTML → JSX
- cURL → JavaScript fetch
- cURL → Axios
- cURL → Python requests
- cURL → Go net/http
- cURL → PHP
- Unix timestamp → ISO 8601
- ISO 8601 → Unix timestamp
- TOML → JSON
- TOML → YAML
- JSON Lines → JSON
- JSON5 → JSON
- JSON → Flat JSON
- Flat JSON → JSON
- SQL → JSON
- JSON → Markdown
- JSONC → JSON
Frequently asked questions
Is PasteKit free?
Yes. All 58 formatters, 48 converters and 16 JSON tools are free to use, with no sign-up and no usage limits beyond what your browser can hold in memory.
Does PasteKit upload or store what I paste?
No. Everything is parsed, formatted and converted in a Web Worker inside your browser, and the published Content Security Policy blocks the page from sending your input anywhere. Share links keep the content after the # in the URL, which browsers never send to a server.
Which formats does PasteKit support?
58 formats, including JSON, JSON5, YAML, XML, CSV, TOML, SQL, HTML, CSS, JavaScript, TypeScript, Python, Go, Java, PHP, Rust, C#, Kotlin, Swift, Ruby, Terraform, GraphQL and Markdown, plus decoders for JWTs, Base64 and URLs. It also converts between formats, for example YAML to JSON, JSON to CSV or JSON to TypeScript types.
How is PasteKit different from other online formatters?
It formats with the same engines developers run locally — Prettier, Ruff, gofmt, clang-format, rustfmt and others compiled to WebAssembly — keeps big numbers exact, points every error to its line and column with a plain-English explanation, and never uploads your data.
Does PasteKit work offline and with large files?
Yes. After your first visit it works offline as an installable web app, and formatting runs in a background thread, so multi-megabyte files do not freeze the page.