Illustration of a Git commit hash being checked and classified as full SHA-1, SHA-256, or abbreviated

Git Commit Hash Validator

Type a commit hash to check its syntax and see whether it's a full SHA-1, a full SHA-256, or an abbreviated hash. Syntax only — there's no repository here to confirm it actually exists. Runs entirely in your browser.


💻 Show API usage examples (cURL)
curl -sS -X POST https://devops.majbase.com/git-hash-validator/api -H "Content-Type: application/json" -d '{"hash":"a1b2c3d"}'

Returns {"valid", "kind", "length", "normalized"}, or {"valid": false, "error": "..."}. kind is one of full-sha1, full-sha256, or short.