FreeDevToolsby WhiteCoder
REST-style JSON API

Bring micro-utilities into your workflow.

A lightweight PHP API for formatting, encoding, hashing and generation tasks. Authentication uses an X-API-Key header.

Create free API keyv1 stable
01

Quick start

Send a JSON POST request to the endpoint with a tool name and input.

POST https://freedevtools.whitecoder.lk/api/v1Content-Type: application/json
X-API-Key: wc_live_your_key

{
  "tool": "json_format",
  "input": "{\"name\":\"FreeDevTools\"}"
}
02

Authentication

Pass your private API key using the X-API-Key request header. Keys are stored as SHA-256 hashes and cannot be recovered after creation.

03

Available tools

json_formatPretty-print and validate JSON
json_minifyMinify valid JSON
base64_encodeEncode UTF-8 text
base64_decodeDecode Base64 text
url_encodeURL-encode a value
url_decodeDecode a URL value
hashGenerate MD5/SHA hash; add algorithm
bcryptGenerate password-safe bcrypt hash
uuidGenerate UUID v4 values; add count
timestampConvert Unix timestamp or date
jwt_decodeDecode JWT header and payload
slugGenerate a URL slug
html_entitiesEncode or decode HTML entities
utmBuild a campaign URL
meta_tagsGenerate SEO meta tags
code_minifyBasic HTML/CSS/JS minification
markdownConvert safe Markdown to HTML
04

Examples

cURL
curl -X POST "https://freedevtools.whitecoder.lk/api/v1" \
  -H "X-API-Key: wc_live_..." \
  -H "Content-Type: application/json" \
  -d '{"tool":"hash","algorithm":"sha256","input":"hello"}'
JavaScript
const response = await fetch("https://freedevtools.whitecoder.lk/api/v1", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "X-API-Key": "wc_live_..."
  },
  body: JSON.stringify({
    tool: "uuid",
    count: 5
  })
});

const data = await response.json();
05

Errors and rate limits

Responses always include an ok boolean. HTTP 401 means the key is missing or invalid, 429 means the daily quota is exhausted, and 422 indicates invalid tool input.

{
  "ok": false,
  "error": {
    "code": "invalid_input",
    "message": "Input must be valid JSON."
  }
}