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();How it works
This tool uses the Web Crypto API's crypto.subtle.digest to compute SHA-1, SHA-256, and SHA-512 hashes of your input text. Your text is encoded to UTF-8 bytes and processed entirely on your device. All three hash values update live as you type, with a small debounce for responsiveness.
No data is sent to any server. No signup, no tracking. Works on any modern browser (desktop and mobile) that supports the Web Crypto API.
You can also compute the same digests from scripts or AI agents through the Clean.tools hash-generator API (the hash_text endpoint), or run it as an MCP server by installing the @clean-tools/mcp package from npm.
Frequently asked questions
Why are there no MD5 or SHA-3 options?
The Web Crypto API only exposes SHA-1, SHA-256, and SHA-512 for digests, so those are the algorithms offered here. MD5 and SHA-3 are not available in the browser without bundling third-party code, which this site avoids.
Will these hashes match sha256sum or shasum on the command line?
Yes, as long as the input matches byte for byte. The text is encoded as UTF-8 with no trailing newline, so a value that includes a line break (or that your terminal adds) will produce a different hash than a plain string.
Can I hash a file instead of text?
Not directly. This tool hashes the text in the box, so hashing a file means pasting its contents as text. Binary files will not round-trip cleanly through a textarea, so use a file-oriented checksum tool for those.
Is SHA-1 still safe to use?
SHA-1 is broken for collision resistance and should not be used for security, signatures, or deduplication where an attacker controls the input. It is included for legacy checksums and comparing against older systems that still emit it.
Can I use this from the command line or an AI agent?
Yes. The same hashing engine is exposed as a REST endpoint at https://api.clean.tools/v1/hash_text, so you can POST text and get the digests back as JSON from any script. It is also an MCP server you can add to Claude, Claude Code, or Cursor, letting an agent hash text directly. To run it locally, install the @clean-tools/mcp package from npm, which starts it as a stdio server.
More tools from Clean.tools
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 →