A cryptographic hash function converts any input of any length into a fixed-size output called a hash or digest. SHA-256, part of the SHA-2 family standardised by NIST, produces a 256-bit (32-byte) output represented as a 64-character hexadecimal string. It has three properties that make it useful in computing: it is deterministic (the same input always gives the same output), it is fast to compute in one direction but computationally infeasible to reverse, and it has the avalanche effect (changing even one character in the input produces an entirely different hash). These properties underpin a wide range of applications: verifying downloaded files have not been corrupted or tampered with, storing password hashes in databases instead of plain text, generating digital signatures, building Merkle trees in blockchain systems, and creating message authentication codes. This tool computes the SHA-256 hash of any text you type, directly in your browser using the SubtleCrypto Web API, part of the modern Web Crypto standard. Because the computation runs locally, nothing you enter is transmitted to any server. The hash updates as you type. The default input "Hello World" produces a specific 64-character hex string you can use to verify the tool is working correctly.
SHA-256 only. Computed in your browser using SubtleCrypto. Nothing is uploaded or stored.
The input text is encoded to UTF-8 bytes using a TextEncoder. Those bytes are passed to window.crypto.subtle.digest('SHA-256', ...) which returns a Promise resolving to an ArrayBuffer of 32 bytes. The bytes are converted to a lowercase hexadecimal string by iterating over each byte value, calling toString(16), and padding to two characters. The result is always exactly 64 hex characters regardless of input length. Because SubtleCrypto is asynchronous, the hash is computed with a .then() callback and the display updates when the Promise resolves.
Input "Hello World" (11 characters). SHA-256 processes the UTF-8 bytes through 64 rounds of bitwise operations and produces the 256-bit digest: a591a6d40bf420404a011733cfb7b190d62c65bf0bcda32b57b277d9ad9f146e. This is always 64 hexadecimal characters (256 bits). This matches the default pre-filled in the calculator above.
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.