DevTools24 API
Free API for common developer operations. No authentication required. All endpoints support CORS and can be called from any origin.
Base URL: https://www.devtools24.com
Rate Limits: Fair use policy. No hard rate limits, but please don't abuse the API. For heavy workloads, consider running the operations locally.
/api/base64Encode or decode Base64 strings.
Action must be "encode" or "decode".
Request Body
{
"action": "encode",
"input": "Hello, World!"
}Response
{
"result": "SGVsbG8sIFdvcmxkIQ=="
}curl Example
curl -X POST https://www.devtools24.com/api/base64 \
-H "Content-Type: application/json" \
-d '{"action": "encode", "input": "Hello, World!"}'/api/hashGenerate cryptographic hashes using Web Crypto API.
Supported algorithms: sha1, sha256, sha512. MD5 returns 501 (not supported by Web Crypto).
Request Body
{
"algorithm": "sha256",
"input": "Hello, World!"
}Response
{
"result": "dffd6021bb2bd5b0af676290809ec3a53191dd81c7f70a4b28688a362182986f",
"algorithm": "sha256"
}curl Example
curl -X POST https://www.devtools24.com/api/hash \
-H "Content-Type: application/json" \
-d '{"algorithm": "sha256", "input": "Hello, World!"}'/api/uuidGenerate UUIDs (v4). Use ?count=N for multiple (max 100).
Response
{
"uuid": "550e8400-e29b-41d4-a716-446655440000"
}curl Example
curl https://www.devtools24.com/api/uuid # Generate 5 UUIDs curl https://www.devtools24.com/api/uuid?count=5
/api/passwordGenerate secure random passwords.
Query params: length (1-128, default 16), uppercase, lowercase, numbers, symbols (all default true).
Response
{
"password": "aB3$kL9!mN2@pQ7&",
"strength": "very-strong"
}curl Example
curl https://www.devtools24.com/api/password # Custom options curl "https://www.devtools24.com/api/password?length=32&symbols=false"
/api/jsonFormat, minify, or validate JSON.
Action must be "format", "minify", or "validate". Indent: 2 or 4 (default 2).
Request Body
{
"action": "format",
"input": "{\"name\":\"test\",\"value\":123}",
"indent": 2
}Response
{
"result": "{\n \"name\": \"test\",\n \"value\": 123\n}",
"valid": true
}curl Example
curl -X POST https://www.devtools24.com/api/json \
-H "Content-Type: application/json" \
-d '{"action": "format", "input": "{\"name\":\"test\",\"value\":123}", "indent": 2}'Error Handling
All endpoints return errors with the following format:
{
"error": "Description of the error"
}Common HTTP status codes: 400 for bad requests, 501 for unsupported operations.
CORS
All API endpoints include CORS headers and support preflight requests. You can call these endpoints directly from browser-based applications on any domain.