Code tools & dev utilities
Developer utility APIs. Code formatting, syntax highlighting, JSON/XML tools, and development helpers.
Format code in multiple languages. Supports JavaScript, Python, PHP, CSS, HTML, and more.
POST /api/v1/devtools/format
{ "code": "function test(){return 1}",
"language": "javascript",
"style": "prettier" }
// Response
{ "formatted": "function test() {\n return 1;\n}",
"language": "javascript",
"changes": 3 }
Add syntax highlighting to code snippets. Returns HTML with themed styling.
POST /api/v1/devtools/highlight
{ "code": "const x = 42;",
"language": "javascript",
"theme": "monokai" }
// Response
{ "html": "<pre class=\"hl\">...",
"css": ".hl-keyword{color:#f92672}",
"theme": "monokai" }
Validate and format JSON data. Schema validation, pretty print, and error detection.
POST /api/v1/devtools/json/validate
{ "json": "{\"name\":\"test\",\"value\":123}",
"format": true }
// Response
{ "valid": true,
"formatted": "{\n \"name\": \"test\",\n \"value\": 123\n}",
"stats": { "keys": 2, "depth": 1 } }
Parse and validate XML documents. Convert to JSON, XPath queries, and schema validation.
POST /api/v1/devtools/xml/parse
{ "xml": "<user><name>John</name></user>",
"output": "json" }
// Response
{ "valid": true,
"json": { "user": { "name": "John" } },
"elements": 2 }
Encode and decode Base64 strings. Support for text, binary data, and URL-safe encoding.
POST /api/v1/devtools/base64
{ "input": "Hello, World!",
"action": "encode",
"url_safe": false }
// Response
{ "output": "SGVsbG8sIFdvcmxkIQ==",
"action": "encode",
"length": 24 }
Generate cryptographic hashes. MD5, SHA-1, SHA-256, SHA-512, and HMAC support.
POST /api/v1/devtools/hash
{ "input": "my-secret-data",
"algorithm": "sha256" }
// Response
{ "hash": "a1b2c3d4e5f6...",
"algorithm": "sha256",
"length": 64,
"uppercase": "A1B2C3D4E5F6..." }
Create unique identifiers. UUID v1, v4, v5, ULID, and nanoid generation.
GET /api/v1/devtools/uuid?version=4&count=3
// Response
{ "uuids": [
"550e8400-e29b-41d4-a716-446655440000",
"6ba7b810-9dad-11d1-80b4-00c04fd430c8",
"f47ac10b-58cc-4372-a567-0e02b2c3d479"
],
"version": 4 }
Test regular expressions against text. Get matches, groups, and explanation of patterns.
POST /api/v1/devtools/regex
{ "pattern": "\\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}\\b",
"text": "Contact: test@example.com",
"flags": "i" }
// Response
{ "matches": ["test@example.com"],
"groups": [],
"count": 1,
"valid": true }
Compare text or code differences. Line-by-line diff, unified format, and HTML output.
POST /api/v1/devtools/diff
{ "original": "Hello World",
"modified": "Hello Universe",
"format": "unified" }
// Response
{ "diff": "- Hello World\n+ Hello Universe",
"changes": 1,
"additions": 1,
"deletions": 1 }
Minify JavaScript, CSS, and HTML. Remove whitespace, comments, and optimize code size.
POST /api/v1/devtools/minify
{ "code": "function hello() {\n return 'world';\n}",
"type": "javascript" }
// Response
{ "minified": "function hello(){return'world'}",
"original_size": 42,
"minified_size": 30,
"savings": "28.6%" }
Parse and explain cron expressions. Get next run times and human-readable descriptions.
POST /api/v1/devtools/cron
{ "expression": "0 9 * * 1-5",
"timezone": "America/New_York" }
// Response
{ "valid": true,
"description": "At 9:00 AM, Mon-Fri",
"next_runs": [
"2024-01-22T09:00:00-05:00",
"2024-01-23T09:00:00-05:00"
] }
Decode and inspect JWT tokens. View header, payload, and verify signatures.
POST /api/v1/devtools/jwt/decode
{ "token": "eyJhbGciOiJIUzI1NiIs..." }
// Response
{ "header": { "alg": "HS256", "typ": "JWT" },
"payload": { "sub": "1234567890",
"name": "John Doe", "iat": 1516239022 },
"expired": false }
Generate placeholder text. Paragraphs, sentences, or words with various styles.
GET /api/v1/devtools/lorem
?type=paragraphs&count=2
// Response
{ "text": "Lorem ipsum dolor sit amet,
consectetur adipiscing elit...",
"type": "paragraphs",
"count": 2,
"word_count": 120 }
Get your API key and start building with powerful dev utilities in minutes.