DEADeveloper Engineering AtlasDeveloper workspace

Local · Your input stays in the browser

Base64, URL Component, and SHA-256 Tool

Encode or decode Base64, encode URL components, and calculate SHA-256 in the browser.

Workspace

Guide and technical reference

How to use

Choose one of four browser-only operations: UTF-8 text to Base64, Base64 back to UTF-8 text, URL-component encoding with encodeURIComponent, or SHA-256 hashing. These operations solve different representation and integrity tasks; Base64 and URL encoding are not encryption, and a SHA-256 digest cannot be decrypted.

  1. Choose Base64 encode, Base64 decode, URL encode, or SHA-256.
  2. Enter text or, for decoding, a standard Base64 string.
  3. Compare the output with the expected representation before copying it into another system.
  4. Use the matching decoder or verifier; do not treat an encoding as access control.

Examples

Input
Base64 encode: hello
Output
aGVsbG8=

The UTF-8 bytes of hello are represented as standard Base64 text.

Input
Base64 encode: 你好
Output
5L2g5aW9

Chinese text is first converted to UTF-8 bytes; decoding restores 你好.

Input
URL encode: a b&c
Output
a%20b%26c

encodeURIComponent escapes the space and ampersand inside one URL component.

Input
SHA-256: abc
Output
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad

The 64 hexadecimal characters represent a 256-bit digest.

Understanding the result

Base64 encode converts UTF-8 bytes to a portable text alphabet; Base64 decode reverses valid standard Base64 into UTF-8 text.

URL encode calls encodeURIComponent, which is intended for one query value or path component and also escapes slash characters.

SHA-256 produces a deterministic one-way digest. Equal bytes produce equal hashes, but a digest does not hide low-entropy input.

Every operation is performed in the browser; the entered content is not sent to the DEA server.

Common errors and limitations

  • Base64 is not encryption and Base64url uses a different alphabet and padding convention.
  • This page does not provide URL decode, file Base64, Base64url conversion, or automatic repair of malformed input.
  • URL-component encoding is not the same as parsing or safely rebuilding an entire URL.
  • Plain SHA-256 is not the password-storage scheme provided by this tool; password storage requires a purpose-built salted password hash.

Frequently asked questions

Why can Base64 represent Chinese text?
The tool converts the text to UTF-8 bytes first, then represents those bytes with the Base64 alphabet.
How is Base64url different?
Base64url replaces + and / with URL-safe characters and often omits padding. This page handles standard Base64, not Base64url.
Why is a slash URL-encoded?
encodeURIComponent treats the input as one component, so / is data rather than a path separator and becomes %2F.

← Back to all tools