Format Converters

Converters translate the same data between the formats different tools expect: a CSV export into JSON for an API, a docker run command into a docker-compose.yml, a cURL command into fetch or Python requests, a Unix timestamp into a readable date, or a CIDR block into the IP range it covers.

Each converter works in both directions where that makes sense, handles the edge cases that break naive conversions (quoted CSV fields, XML attributes, YAML anchors), and runs entirely client-side.

22 convert tools

Color Converter

Convert between HEX, RGB, and HSL color formats

Timestamp Converter

Convert Unix timestamps to dates in any time zone, with code for 12 languages incl. Temporal

Number Base Converter

Convert numbers between binary, octal, decimal, and hex

String Case Converter

Convert text between camelCase, snake_case, kebab-case and more

JSON ↔ YAML Converter

Convert between JSON and YAML formats instantly

IP / CIDR Calculator

Calculate subnet masks, IP ranges, and host counts from CIDR notation

CIDR Merge & IP Range to CIDR

Merge and deduplicate IP lists into the fewest CIDR blocks, subtract ranges, and convert IP ranges to CIDR

VLSM Subnet Planner

Split a network into subnets sized by host count — the most efficient CIDR for each, with AWS rules optional

AWS VPC Subnet Calculator

Lay out public, private and database subnets across Availability Zones, with Terraform and CloudFormation output

CIDR to IP Range Converter

Turn CIDR blocks into first and last IP, usable hosts and address count, in bulk, with CSV export

Docker Run to Compose

Convert docker run commands to docker-compose.yml and back

Dockerfile Generator

Pick a stack and get a sensible, multi-stage-aware Dockerfile — plus a matching .dockerignore

CSV to JSON Converter

Convert CSV to JSON and back, with the delimiter detected, real types and nested objects

XML ↔ JSON Converter

Convert between XML and JSON formats instantly, in either direction

Env File Tool

Parse, convert, and generate .env.example files from your .env

cURL to Code

Paste a curl command, get working code in Python, JavaScript, PHP, Go, Java, C#, Ruby, Rust, PowerShell and more

URL Parser & Query String Builder

Break down a URL into its parts and build query strings visually

.htaccess to Nginx Converter

Convert Apache .htaccess rules to nginx server block syntax

Meeting Planner

Rank the best meeting times across time zones with per-location working hours and a shareable link

JSON to Markdown Table

Convert a JSON array of objects into a ready-to-paste Markdown table

SVG to JSX / React Component

Paste raw SVG markup and get a ready-to-use React component

Database Connection String Parser & Builder

Parse a Postgres, MySQL, MongoDB, or Redis connection URI into its parts — or build one visually

Guides

🔑 How to Find Hardcoded API Keys in Your Code, and What to Do When One Leaks

The three ways scanners detect hardcoded secrets, the commands to search your code and its whole git history, and the order to act in when a key has leaked: revoke, check, clean, prevent.

🔑 Why Hardcoded Secrets Still End Up in Git — and How to Actually Catch Them

Hardcoded API keys and credentials remain one of the most common security findings in real codebases. Here's what the common secret formats actually look like, why regex-based scanning works (and where it doesn't), and how to stop a leak before it's committed.

🐳 Docker 'Port Is Already Allocated' (and Other Common Docker Errors), Explained

Port conflicts, a daemon that won't connect, and container exit codes are the errors that eat the most Docker debugging time. Here's what causes each and the fastest way to fix them.

🧭 DNS Error Codes Explained: NXDOMAIN, SERVFAIL, and REFUSED

"It's probably still propagating" is wrong more often than it's right. NXDOMAIN, SERVFAIL, and REFUSED each mean something specific and diagnosable — here's how to tell them apart with dig and fix the actual cause.

📊 CSV vs JSON: When to Use Which (and How to Convert Between Them)

CSV and JSON solve different problems — one is tabular, one is hierarchical. Here's how to decide which format fits your use case, plus the common pitfalls when converting between them.

🔄 How to Convert cURL Commands to Python, JavaScript, PHP and More

Learn how to convert cURL commands to Python requests, JavaScript fetch, axios, PHP and Go. Real examples, curl flags explained, and a free online converter.

Other categories

ToolNinja