Text & Code

Hash Generator

Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text or files.

Format

Hash Comparison

🔒 All hashing happens in your browser using the Web Crypto API. Nothing is sent anywhere.

☕ Love this tool? Support the developer.

100% free — no ads, no limits. Your support keeps every tool free.

$

Secure payment via Stripe · No account needed

About Hash Generator

OptiPix Hash Generator computes cryptographic hashes of text or files directly in your browser. Enter text or drop a file to instantly generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes simultaneously. Switch between lowercase hex, uppercase hex, and Base64 output formats. Use HMAC mode with a secret key for keyed-hash message authentication codes. The hash comparison tool lets you paste two hashes to verify if they match — perfect for file integrity verification. Hashes update live as you type. SHA hashes use the Web Crypto API built into every modern browser; MD5 uses a bundled pure-JavaScript implementation. Nothing is sent to any server.

How It Works

SHA hashes use the Web Crypto API's crypto.subtle.digest() method, which is built into every modern browser. MD5 uses a bundled pure-JavaScript implementation since the Web Crypto API doesn't support MD5. For HMAC, the tool uses crypto.subtle.sign() with the HMAC algorithm.

Use Cases

  • Verify file integrity after downloading
  • Generate checksums for data validation
  • Create HMAC signatures for API authentication
  • Compare hashes to detect file modifications
  • Generate hash digests for password storage research

Frequently Asked Questions

What hash algorithms are supported?
MD5 (128-bit), SHA-1 (160-bit), SHA-256 (256-bit), SHA-384 (384-bit), and SHA-512 (512-bit). All are generated simultaneously.
Can I hash files?
Yes. Drop any file and the tool will hash its raw bytes. This is useful for verifying file downloads and checking integrity.
What is HMAC mode?
HMAC (Hash-based Message Authentication Code) combines a secret key with the hash function to produce a keyed hash. It's used for verifying both data integrity and authenticity.
Is MD5 secure?
MD5 is considered cryptographically broken for security purposes (collision attacks exist). However, it's still widely used for checksums and non-security purposes. For security, use SHA-256 or SHA-512.
Is my data sent to any server?
No. All hashing is performed locally using the Web Crypto API (for SHA) and a bundled JavaScript implementation (for MD5).

Related Tools

All 102 Tools

Image CompressorBackground RemoverVideo CompressorImage UpscalerOCR Text ExtractorFormat ConverterImage ResizerEXIF RemoverFace BlurDepth EstimationQR Code GeneratorWatermark MakerColor Palette ExtractorPhoto FiltersImage to PDFObject DetectionImage ClassifierImage CaptionerAI Image GeneratorMeme GeneratorGIF MakerPhoto Collage MakerImage CropPhoto EffectsImage to SVGColor ChangerNoise RemoverPhoto RestorationColor PickerFavicon GeneratorImage to Base64Image Metadata ViewerImage AnnotatorPassport Photo MakerDocument ScannerASCII Art GeneratorImage ComparisonSprite Sheet GeneratorObject RemoverPanorama MakerWord CounterCase ConverterLorem Ipsum GeneratorUUID GeneratorUnix Timestamp ConverterText DiffURL Encoder / DecoderHTML Entity Encoder / DecoderBase64 Text Encoder / DecoderText to Binary / Hex / OctalHash GeneratorJSON Formatter / ValidatorRandom String GeneratorCSV ↔ JSON ConverterMarkdown EditorUnit ConverterPercentage CalculatorBMI CalculatorAge CalculatorTip CalculatorCSS Gradient GeneratorCSS Box Shadow GeneratorCSS Border Radius GeneratorGlassmorphism GeneratorNeumorphism GeneratorCSS Text Shadow GeneratorFlexbox PlaygroundCSS Grid GeneratorAudio TrimmerAudio ConverterAudio MergerAudio RecorderVideo to Audio ExtractorAudio Speed ChangerAudio Volume BoosterRingtone MakerVocal RemoverText to SpeechSpeech to TextAudio Noise RemoverAudio EqualizerAudio EffectsVideo TrimmerVideo MergerVideo ResizerVideo Speed ChangerVideo RotatorVideo to MP4 ConverterAdd Music to VideoMute VideoVideo LooperReverse VideoVideo ScreenshotAdd Subtitles to VideoVideo WatermarkScreen RecorderWebcam RecorderSlideshow MakerVideo FiltersCron Expression BuilderRegex TesterUnix Timestamp Converter