Skip to content
beginthings.

Dev & Data

Base64, URL, HTML & hash tool

Pick an operation, paste your text and get the result instantly. Handles emoji and Indian-language text correctly, and nothing leaves your browser.

Convert

Result

Twelve conversions in one box

This tool covers the small text conversions that come up when you build or debug websites, emails and APIs: Base64 in both directions, URL (percent) encoding and decoding, HTML entities, text to hexadecimal and back, and SHA-1, SHA-256, SHA-384 and SHA-512 hashes. Every operation first turns your text into UTF-8 bytes, which is why "नमस्ते", "₹" or an emoji come back exactly as you typed them after a round trip.

Encoding and hashing are different jobs. Base64, URL encoding, entities and hex are reversible: they only rewrite the same data in a safer alphabet, and anyone can undo them. A hash is one-way: it gives a fixed-length fingerprint, and changing a single letter gives a completely different result.

How to use it

  1. Choose the operation from the list. The options below the text box change to match it.
  2. Paste your text. The result appears as you type, together with the input and output length in characters.
  3. Set the options you need: URL-safe Base64, keeping the characters of a whole web address, reading + as a space when decoding, encoding every non-ASCII character as an entity, or uppercase hex.
  4. Copy the result, or download it as a text file.

Worked examples

Base64 for a Basic auth header. user:pass123 encodes to dXNlcjpwYXNzMTIz. Base64 writes every 3 bytes as 4 characters, so 12 characters in give 16 out. Hindi takes more room: "नमस्ते" is 6 characters but 18 UTF-8 bytes, so it becomes 24 Base64 characters. With URL-safe on, a?b>c gives YT9iPmM instead of YT9iPmM=, because the padding is dropped and + and / would be swapped for - and _.

URL encoding a file name or search term. "price list & offers 2026.pdf" becomes price%20list%20%26%20offers%202026.pdf. Encode just the value, not the whole address: with "Keep URL characters" ticked, https://example.com/search?q=chai & samosa keeps its &, so a server would read "samosa" as a separate parameter. Encode "chai & samosa" on its own and paste it after q=.

HTML entities. <b>Tom & Jerry</b> becomes &lt;b&gt;Tom &amp; Jerry&lt;/b&gt;, which a page shows as text instead of making it bold. With non-ASCII encoding on, "₹500 café" becomes &#8377;500 caf&#233;.

Hashes. The SHA-256 of hello is 2cf24dba…938b9824, while Hello with a capital H gives 185f8db3…26381969. An empty box still has a hash, starting e3b0c442.

Where each one helps, and its limits

Base64 decoding is handy for reading a data URL, an email attachment header or the payload inside a token. Hex shows the exact bytes behind a character that looks odd, such as a non-breaking space. Hashes let you check that two copies of a text match, or compare a value against a checksum someone published.

SHA-1 is kept for checking old checksums only; it is no longer considered safe against deliberate collisions, so use SHA-256 or longer for anything new. Plain SHA hashes are also too fast for storing passwords, which need a slow, salted algorithm such as bcrypt or Argon2. This tool hashes text, not files, so a file's published checksum will not match text you paste from it. Decoding fails with a clear message when the input is not valid Base64, percent-encoding or hex, or when the bytes are not valid UTF-8 text.

Frequently asked questions

Is Base64 a way to hide a password?

No. Base64 only changes how the data is written, and anyone can decode it in a second. Use it for transport, never for secrecy.

Why does my decoded URL still show + signs?

Percent-encoding uses %20 for a space, but HTML forms send spaces as +. Tick "Treat + as a space" when decoding text copied from a form submission or search URL.

Why is my hash different from another website's?

Hashes change with every byte. Check for a trailing space or line break, a different letter case, or a different algorithm, and make sure both sides use UTF-8.

Can I hash a file?

Not here. The tool hashes the text you paste, so use your operating system's checksum command for files.

Privacy

Your inputs are processed by your browser and are not sent to BeginThings. Hashes are made with your browser's built-in Web Crypto functions, so tokens and keys you paste stay on this device.

More free tools you might need