Data & File Format Converters
Convert between JSON, XML, CSV, YAML, Markdown, cURL commands, and number bases locally with CodePackr converters.
Converters move data from one representation to another without requiring a separate application. Turn JSON into XML or CSV, YAML into JSON, CSV into XML, and Markdown into HTML or the reverse.
A cURL-to-code converter translates a curl command into equivalent requests in several programming languages. Number-base conversion handles binary, octal, decimal, and hexadecimal values. Case converters switch between camelCase, snake_case, and other common naming styles.
A JSON definition generator can produce TypeScript interfaces or similar type definitions from a sample JSON object.
All conversions occur in the browser, so large or confidential files stay on your machine. Use the tools when you receive data in one format and need it in another for a script, a documentation page, or a quick import.
Round-trip conversions are not always lossless; the tools document or preserve as much structure as the target format allows. Case conversion is handy when moving between languages that prefer different naming conventions. The cURL converter saves time when you have a working command-line request and need the equivalent in application code.
You can chain tools when needed: convert YAML to JSON, then JSON to CSV, all without leaving the browser or saving intermediate files.
Tools in this collection
- JSON to XML / XML to JSON — Convert data bi-directionally between JSON objects and XML markup.
- JSON to CSV / CSV to JSON — Convert JSON arrays to tabular CSV or transform CSV rows into JSON objects.
- Case Converter — Convert identifiers between camelCase, snake_case, kebab-case, PascalCase, and more.
- YAML to JSON Converter — Convert back and forth between YAML syntax and formatted JSON.
- Number Base Converter — Convert values simultaneously between Binary, Octal, Decimal, and Hexadecimal.
- Markdown to HTML / HTML to Markdown — Convert Markdown into HTML markup or extract Markdown from HTML tags.
- cURL to Code Converter — Convert cURL command strings to JavaScript Fetch, Axios, Node.js, and Python requests.
- CSV to XML Converter — Transform tabular CSV spreadsheets into structured XML records.
- HTML to Markdown Converter — Convert HTML markup back into clean, readable Markdown syntax.
- JSON Definition & Type Generator — Convert JSON payloads into TypeScript interfaces, JSON Schema, Python Pydantic models, C# POCO, Java POJO, Go structs, and Rust Serde types.