Hash Generator (MD5, SHA-1, SHA-256, SHA-512)

This hash generator turns any piece of text into its cryptographic fingerprint, the fixed-length digest used to verify file integrity, spot duplicate content, and understand how algorithms like MD5 and SHA work under the hood. Type or paste any text into the input box, tick which algorithms you want from MD5, SHA-1, SHA-256 and SHA-512, and choose your output format: lowercase hex, uppercase hex, or Base64. The calculator returns a hash for each algorithm you select, along with the input length in bytes and the character count, so you can confirm exactly what was hashed. Because a single changed character produces a completely different digest, the tool is useful for checking whether two files or strings are identical, verifying a download against a published checksum, or simply seeing how each algorithm's output length differs, from MD5's 32-character hex string to SHA-512's 128 characters. A worked example using the default text "Hello, World!" shows the expected result for each algorithm so you can confirm the tool is working correctly before using your own data. All hashing runs directly in your browser using the Web Crypto API and a built-in MD5 implementation, so your text is never uploaded or stored anywhere. Remember that MD5 and SHA-1 are no longer considered secure for protecting sensitive data such as passwords; use SHA-256 or SHA-512 for anything security-related.

Calculate.co.nz is proud to be partnered with realtor.co.nz, a trusted resource for navigating the New Zealand property market. Their Helpful Articles section offers clear, well-structured insights across buying, selling, and building, making complex real estate topics more accessible. With a focus on up-to-date guidance and practical knowledge, they empower Kiwis to move forward with clarity and confidence in a constantly evolving property landscape.
Calculate.co.nz partner: realtor.co.nz
Standard algorithms  MD5 (RFC 1321) and SHA-2 family (NIST FIPS 180-4). Results are deterministic and reproducible.

1. Input Text

Hash Results

-
-
-
-
Input length: 0 bytes (UTF-8) Input characters: 0

Worked Example: Input "Hello, World!"

AlgorithmHash (hexadecimal)
MD565a8e27d8879283831b664bd8b7f0ad4
SHA-10a0a9f2a6772942557ab5355d76af442f8f65e01
SHA-256dffd6021bb2bd5b0af676290809ec3a53191dd81c7f70a4b28688a362182986f
SHA-512374d794a95cdcfd8b35993185fef9ba368f160d8daf432d08ba9f1ed1e5abe6cc69291e0fa2fe0006a52570ef18c19def4e617c33ce52ef0a6e5fbe318cb0387

These values match the calculator defaults. The default input field is pre-loaded with "Hello, World!" so you can verify the output immediately.

Privacy note: This tool runs entirely in your browser. Your input text is never transmitted to any server. You can verify this by disconnecting from the internet and the tool will continue to work.

What Is a Cryptographic Hash?

A cryptographic hash function takes an input of any length and produces a fixed-length output called a digest or hash. The same input always produces the same output (deterministic), but a tiny change to the input produces a completely different hash (the avalanche effect). For example, hashing "hello" and "Hello" produces entirely different SHA-256 digests. Hash functions are one-way: you cannot reverse a hash to recover the original input.

Common Algorithms

AlgorithmOutput sizeHex lengthSecurity statusTypical use
MD5128 bits32 charsBroken (collision attacks)Non-security checksums, legacy systems
SHA-1160 bits40 charsDeprecated (collision found 2017)Legacy certificates, git object IDs
SHA-256256 bits64 charsSecureTLS, code signing, password hashing, blockchain
SHA-512512 bits128 charsSecureHigh-security signatures, archival checksums

How the Calculation Works

Your input text is encoded to bytes using UTF-8. Each algorithm then processes the bytes through its specific compression function:

Hex vs Base64 Output

The raw hash is a sequence of bytes. There are two common ways to represent those bytes as printable text:

Use Cases

Related Calculators

Sources and method: MD5 implementation based on RFC 1321 (Rivest, 1992). SHA-1, SHA-256, and SHA-512 computed via the Web Crypto API (W3C specification, using browser-native implementations conforming to NIST FIPS 180-4). Output encoding follows standard hexadecimal and Base64 conventions.

This tool is provided for educational and development purposes. Do not use MD5 or SHA-1 for new security-sensitive applications. For password hashing in production systems, use a purpose-built algorithm such as bcrypt, Argon2id, or scrypt with appropriate work factors. All computation runs in your browser and no data is transmitted.

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-07-02 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.