Encoding & Security
Base64 / URL / Hash / Encrypt · 15 tools
These tools deal with three different things that are routinely confused with each other: encoding (reversible, no key), hashing (one-way, no key) and encryption (reversible, needs a key). Base64, URL encoding, Base32, Unicode escapes and HTML entities are encoding — anyone can turn them back. MD5, SHA and CRC32 are digests — you cannot reverse them, you can only compare. HMAC is a digest bound to a secret key. None of the tools on this page encrypt anything.
Everything runs in your browser. That matters more here than on other pages: keys, JWTs and passwords you paste in are never sent to a server.
Which one do I need?
- Moving data safely through a text channel (URL parameter, JSON string, email header): Base64 or URL encoding. Choose Base32 when the target is case-insensitive or human-transcribed.
- Checking whether a file or payload changed: SHA-256, or CRC32 if you only need to catch accidental corruption. CRC32 is linear, so it cannot detect deliberate tampering.
- Signing an API request: HMAC with a shared secret. Remember both sides can produce the signature, so it proves integrity, not authorship.
- Looking inside a token: the JWT decoder splits the three parts and shows the payload. Decoding is not verification — the signature still has to be checked with the key.
- Generating identifiers or passwords: UUID and Password generators both draw from the platform CSPRNG, not from Math.random.
All tools in this category
Guides in this category
- Base64, fully explained: encoding rules, padding, the 33% size penalty, and common mythsConvert text to Base64 or decode Base64 back to text, with full support for Chinese and emoji
- URL encoding, decoded: encodeURI vs encodeURIComponent and the five mistakes that bite mostPercent-encoding conversion for Chinese parameters and special characters
- Unicode escapes: when to use \uXXXX, and how to convert without breaking surrogate pairsConvert between text and \uXXXX escape sequences
- UTF-8 bytes and text, converted both ways: why mojibake happens and how to diagnose itConvert between text and UTF-8 hex bytes
- The escape() function: what it does and why you should no longer use itConvert between URL percent-encoding and escape sequences
- MD5 is broken: where it is still fine to use it, and where you must neverCompute the 32-character MD5 hash of text, with batch and case-toggle support
- The SHA family compared: SHA-1, SHA-256, SHA-512, and which one to reach forCompute SHA-1 / SHA-256 / SHA-384 / SHA-512 in one click
- HMAC vs a raw hash: why you must not write hash(secret + message)Compute an HMAC-SHA signature with a secret key, handy for API debugging
- CRC32: it catches accidental corruption, not malicious tamperingCompute the CRC32 checksum, commonly used for data verification
- Base32: why TOTP secrets use it instead of Base64RFC 4648 Base32 encoding, often used for Google Authenticator keys
- JWT parsing and security: decoding is not the same as trustingParse the JWT header and payload, and check the expiry time
- Which UUID version to pick: v4 is random, but it can slow your databaseGenerate v4 random UUIDs in bulk, with formatting options
- How password strength is measured: entropy, length and crack costGenerate strong random passwords with a customizable character set and length
- Morse code: its encoding rules and timing standardConvert text to Morse code (.-) and back, supports Latin characters
- The right way to verify a hash by comparisonCompare a text hash against a given value to verify a downloaded file
FAQ
Is Base64 a form of encryption?
No. It has no key and is fully reversible — the 64-character alphabet is public. It exists to carry binary data through channels that only accept text. If you need secrecy, use actual encryption.
Can I still use MD5 or SHA-1?
For non-adversarial integrity checks, yes — they are fast and widely supported. For signatures, certificates or password storage, no: practical collision attacks against both are public, so an attacker can craft a second input with the same digest.
Can a hash be reversed?
Not mathematically. But short or predictable inputs (common passwords, 4-digit PINs, dictionary words) can be looked up in precomputed tables. That is why password storage needs a random salt and a deliberately slow algorithm such as bcrypt, scrypt or Argon2 — and why MD5 over a password is unsafe even today.