Single endpoint, instant results

Text Hash API - Generate SHA-256 Hashes

Generate SHA-256 hashes of any text. Perfect for data integrity checks, cache keys, and password hashing. Free: 1,000 requests/day, no API key required.

POST https://textforge.co/v1/run
{
  "input": "Hello World!",
  "pipeline": [
    "hash"
  ]
}

Response:

{
  "success": true,
  "input": "Hello World!",
  "pipeline": [
    "hash"
  ],
  "result": "hello-world",
  "steps": [
    {
      "step": 1,
      "action": "hash",
      "result": "hello-world",
      "execution_time_ms": 1
    }
  ],
  "execution_time_ms": 4
}

Use Case: Cache Key Generation

Generate consistent cache keys from query parameters and request bodies.

Example: Generate SHA-256 hashes of any text. Perfect for data integrity checks, cache keys, and password hashing. Free: 1,000 requests/day, no API key required.

Frequently Asked Questions

Which algorithm does the hash transform use?

SHA-256, returning a 64-character lowercase hex digest.

Quick Start

cURL
curl -X POST https://textforge.co/transform   -H "Content-Type: application/json"   -d '{"text":"Hello World!","action":"hash"}'
Node.js
fetch("https://textforge.co/transform", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ text: "Hello World!", action: "hash" })
}).then(r => r.json()).then(console.log);
Python
import requests

payload = { "text": "Hello World!", "action": "hash" }
response = requests.post("https://textforge.co/transform", json=payload)
print(response.json())
PHP
<?php
$payload = json_encode([ "text" => "Hello World!", "action" => "hash" ]);
$ch = curl_init("https://textforge.co/transform");
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: application/json"]);
$response = curl_exec($ch);
echo $response;
?>

Why use the API?

Sub-5ms latency

p95 response time, no cold starts

🔗

Composable pipelines

Chain transforms in one request

🛡️

Fair free tier

1,000 requests/day, no credit card

🌐

Works everywhere

curl, Python, JS, PHP - no SDK needed

📊

Built-in analytics

Usage tracking, rate limit headers

🔒

HTTPS only

CORS enabled, production ready

All 28 Transforms