#️⃣ Hash Generator — MD5 SHA256 SHA512

Generate MD5, SHA-1, SHA-256 and SHA-512 hashes for text or files instantly. Free online hash calculator — runs in browser, nothing sent to any server.

Hash Types

How to Use

1

Enter text or file

Type or paste text in the input, or switch to File mode and drag a file onto the drop zone.

2

Hashes generate instantly

MD5, SHA-1, SHA-256 and SHA-512 hashes are calculated automatically as you type.

3

Copy any hash

Click the copy icon next to any hash row. Optionally compare against a known hash value.

Frequently Asked Questions

What is a hash function? +
A hash function takes any input and produces a fixed-length output (hash). The same input always produces the same hash, but the hash cannot be reversed to get the original input. Used for data integrity, password storage, and checksums.
What is the difference between MD5, SHA-1, SHA-256, and SHA-512? +
They differ in output length and security. MD5 (128-bit) and SHA-1 (160-bit) are considered cryptographically broken and unsuitable for security purposes. SHA-256 and SHA-512 are part of the SHA-2 family and remain secure for most uses.
Can I use MD5 for password hashing? +
No — MD5 is not suitable for password hashing. Use bcrypt, Argon2, or scrypt instead. MD5 is only appropriate for non-security checksums like file integrity verification.
Can I generate a hash for a file? +
Yes — switch to File mode to hash any file. The SHA-256 hash of a file is its fingerprint: if even one byte changes, the hash completely changes.
Are the inputs sent to a server? +
No. All hashing runs in your browser. Text hashes use the Web Crypto API (SHA family) and a JavaScript MD5 implementation. Files are read locally with FileReader.


Tam Rehber: Hash Üreteci

Kriptografik Hash Nedir ve Neden Önemlidir?

Kriptografik hash fonksiyonu, herhangi bir boyuttaki girişi alır ve sabit uzunlukta bir "özet" üretir. Üç temel özelliği vardır: determinizm (aynı giriş her zaman aynı çıkışı verir), tek yönlülük (özeti tersine çevirerek girişi kurtaramazsınız) ve çakışma direnci (aynı özeti veren iki farklı giriş bulmak hesapsal olarak imkânsızdır).

Git, her commit, tree ve blob'u tanımlamak için SHA kullanır. Dosya indirme siteleri SHA-256 sağlama toplamı yayımlar. Şifre sistemi hiçbir zaman şifrenizi değil, hash'ini saklar.

Nasıl Kullanılır?

  1. Metin veya Dosya modunu seçin.
  2. Metin modunda: yazarken MD5, SHA-1, SHA-256 ve SHA-512 hash'leri anında görüntülenir.
  3. Dosya modunda: dosyayı sürükleyip bırakın — tüm hash'ler tarayıcıda hesaplanır, dosya hiçbir zaman sunucuya gitmez.
  4. Karşılaştırma: bilinen hash değerini karşılaştırma alanına yapıştırarak doğrulama yapın.

Kod Örnekleri

// Tarayıcı: Web Crypto API ile SHA-256
async function sha256(mesaj) {
  const kodlu = new TextEncoder().encode(mesaj);
  const tampon = await crypto.subtle.digest('SHA-256', kodlu);
  return Array.from(new Uint8Array(tampon))
    .map(b => b.toString(16).padStart(2, '0')).join('');
}

// Node.js: SHA-256 ve HMAC
import { createHash, createHmac } from 'crypto';
const h256 = createHash('sha256').update('veri').digest('hex');
const hmac = createHmac('sha256', 'gizli-anahtar').update('veri').digest('hex');

Yaygın Hatalar

İpuçları

🧰 50+ Tools