Text & Code

Hash Generator

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

Your files stay on your device - processed locally via WebAssembly, never uploaded

Format

Hash Comparison

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

Share this tool with othersHelp others discover free tools
Embed this tool on your website

Copy this code to add the Hash Generator to your site for free. It runs entirely in your visitors' browsers - no API key, no usage limits.

<iframe src="https://optipix.art/embed/hash-generator" width="100%" height="600" style="border:1px solid #e4e4e7;border-radius:8px;" title="Hash Generator by OptiPix" loading="lazy"></iframe>
<p style="font-size:12px">Free tool by <a href="https://optipix.art/hash-generator">OptiPix Hash Generator</a></p>

❤️ Love this tool? Support our team.

No ads, no tracking, no limits. Tips keep 104 tools free for everyone.

$

Secure payment via Stripe · No account needed

About Hash Generator

Last updated: May 2026

OptiPix Hash Generator คำนวณค่าแฮชแบบเข้ารหัสของข้อความหรือไฟล์ได้โดยตรงในเบราว์เซอร์ของคุณ ป้อนข้อความหรือลากวางไฟล์เพื่อสร้างค่าแฮช MD5, SHA-1, SHA-256, SHA-384 และ SHA-512 ได้ทันทีพร้อมกัน สลับระหว่างรูปแบบเอาต์พุต hex ตัวพิมพ์เล็ก, hex ตัวพิมพ์ใหญ่ และ Base64 ใช้โหมด HMAC พร้อมคีย์ลับสำหรับรหัสรับรองความถูกต้องของข้อความแบบ keyed-hash เครื่องมือเปรียบเทียบแฮชช่วยให้คุณวางแฮชสองรายการเพื่อตรวจสอบว่าตรงกันหรือไม่ เหมาะสำหรับการตรวจสอบความสมบูรณ์ของไฟล์ ค่าแฮชจะอัปเดตทันทีขณะที่คุณพิมพ์ ค่าแฮช SHA ใช้ Web Crypto API ที่มีอยู่ในเบราว์เซอร์สมัยใหม่ทุกเครื่อง; MD5 ใช้การใช้งาน pure-JavaScript ที่รวมมาด้วย ไม่มีข้อมูลใดถูกส่งไปยังเซิร์ฟเวอร์ใดๆ

How It Works

ค่าแฮช SHA ใช้เมธอด crypto.subtle.digest() ของ Web Crypto API ซึ่งมีอยู่ในเบราว์เซอร์สมัยใหม่ทุกเครื่อง MD5 ใช้การใช้งาน pure-JavaScript ที่รวมมาด้วย เนื่องจาก Web Crypto API ไม่รองรับ MD5 สำหรับ HMAC เครื่องมือจะใช้ crypto.subtle.sign() กับอัลกอริทึม HMAC

Use Cases

  • ตรวจสอบความสมบูรณ์ของไฟล์หลังดาวน์โหลด
  • สร้าง checksum สำหรับการตรวจสอบข้อมูล
  • สร้างลายเซ็น HMAC สำหรับการรับรองความถูกต้องของ API
  • เปรียบเทียบค่าแฮชเพื่อตรวจจับการแก้ไขไฟล์
  • สร้าง hash digests สำหรับการวิจัยการจัดเก็บรหัสผ่าน

You Might Also Like

If you find Hash Generator useful, check out these related tools: UUID Generator, Random String Generator, and Base64 Text Encoder / Decoder. All tools run entirely in your browser with no uploads or signups required.

Frequently Asked Questions

รองรับอัลกอริทึมแฮชอะไรบ้าง?
MD5 (128-bit), SHA-1 (160-bit), SHA-256 (256-bit), SHA-384 (384-bit) และ SHA-512 (512-bit) ทั้งหมดจะถูกสร้างขึ้นพร้อมกัน
ฉันสามารถแฮชไฟล์ได้หรือไม่?
ได้ ลากวางไฟล์ใดก็ได้ แล้วเครื่องมือจะแฮชไบต์ดิบของไฟล์นั้น มีประโยชน์สำหรับการตรวจสอบการดาวน์โหลดไฟล์และการตรวจสอบความสมบูรณ์
โหมด HMAC คืออะไร?
HMAC (Hash-based Message Authentication Code) รวมคีย์ลับเข้ากับฟังก์ชันแฮชเพื่อสร้าง keyed hash ใช้สำหรับการตรวจสอบทั้งความสมบูรณ์และความถูกต้องของข้อมูล
MD5 ปลอดภัยหรือไม่?
MD5 ถือว่าไม่ปลอดภัยสำหรับการใช้งานด้านความปลอดภัย (มีการโจมตีแบบ collision) อย่างไรก็ตาม ยังคงใช้กันอย่างแพร่หลายสำหรับ checksum และวัตถุประสงค์ที่ไม่ใช่ด้านความปลอดภัย สำหรับด้านความปลอดภัย ให้ใช้ SHA-256 หรือ SHA-512
ข้อมูลของฉันถูกส่งไปยังเซิร์ฟเวอร์ใดๆ หรือไม่?
ไม่ การแฮชทั้งหมดดำเนินการในเครื่องโดยใช้ Web Crypto API (สำหรับ SHA) และการใช้งาน JavaScript ที่รวมมาด้วย (สำหรับ MD5)

Related Tools

More Text & Code 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