SHA-256 hash generator
Generate a SHA-256 hash from any text. It is computed in your browser with the Web Crypto API.
Hash Values
Use this tool from AI agents
This tool's engine is available to AI agents over MCP as hash_text. Add the Clean.tools server, then your agent can call it directly.
claude mcp add --transport http clean-tools https://mcp.clean.tools/mcpclaude mcp add --transport http clean-tools https://mcp.clean.tools/mcp{"mcpServers":{"clean-tools":{"command":"npx","args":["-y","@clean-tools/mcp"]}}}{"mcpServers":{"clean-tools":{"command":"npx","args":["-y","@clean-tools/mcp"]}}}https://mcp.clean.tools/mcphttps://mcp.clean.tools/mcpOr call it over plain HTTP from any script. Same engine, JSON in and JSON out, no key:
curl -s https://api.clean.tools/v1/hash_text \
-H 'content-type: application/json' \
-d '{"text":"hello world","algorithm":"SHA-256"}'curl -s https://api.clean.tools/v1/hash_text \
-H 'content-type: application/json' \
-d '{"text":"hello world","algorithm":"SHA-256"}'const res = await fetch('https://api.clean.tools/v1/hash_text', {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ text: 'hello world', algorithm: 'SHA-256' })
});
const data = await res.json();const res = await fetch('https://api.clean.tools/v1/hash_text', {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ text: 'hello world', algorithm: 'SHA-256' })
});
const data = await res.json();SHA-256 hash generator
Type or paste text above and this tool shows its SHA-256 hash instantly, alongside SHA-1 and the other SHA variants. For example, the SHA-256 hash of "hello world" is:
SHA-256
b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9Hashing uses the browser's Web Crypto API, so your text never leaves the page. No cost, no signup, no tracking.
Frequently asked questions
Is SHA-256 reversible?
No. SHA-256 is a one-way hash, so you cannot recover the original text from the digest. Equal inputs always produce the same digest, which is what makes it useful for checksums and fingerprints.
Can I use this from the command line or an AI agent?
Yes. It is a REST endpoint at https://api.clean.tools/v1/hash_text and an MCP server you can add to Claude, Claude Code, or Cursor. The @clean-tools/mcp npm package runs it as a local stdio server.
More developer presets
Use Clean.tools from your AI agent
This tool is also hash_text on the Clean.tools MCP server — the same engine, callable by your AI agent directly. No key, no signup: requests are processed in memory and request contents are never stored.
claude mcp add --scope user --transport http clean-tools https://mcp.clean.tools/mcpclaude mcp add --scope user --transport http clean-tools https://mcp.clean.tools/mcphttps://mcp.clean.tools/mcphttps://mcp.clean.tools/mcpEvery tool, the REST API, and setup for Cursor, Claude Desktop, VS Code & more →