Decoder Toolbox
Decode Base64, URL text and hex, compare SHA digests, and convert timestamps from logs and email.
Runs entirely in your browser — your input is never transmitted anywhere.
How it works
Choose the operation that matches the source. Base64, URL percent encoding and hex represent bytes in a reversible form. A SHA digest is a fixed-length fingerprint. Encryption uses a cryptographic key to protect the data. Treat decoded content as evidence to inspect.
Recognize the format before converting it
Base64 and Base64URL
Standard Base64 uses
letters, digits, plus and slash, with one or two trailing equals signs when padded.
In a raw email, check the
individual MIME part for a Base64
transfer encoding (Content-Transfer-Encoding: base64).
An attachment may decode to file bytes. Paste only the encoded body, without the
MIME headers or boundaries.
The Base64 decoder removes whitespace, tries UTF-8 and shows hex if that fails.
Binary files can also contain valid UTF-8. In endpoint logs, PowerShell's
EncodedCommand identifies
Base64-encoded UTF-16LE.
Interpret those bytes in the source encoding and inspect recovered content as data.
Base64 Encode here takes UTF-8 text and produces standard Base64. Base64URL uses hyphen and underscore in place of plus and slash, which this toolbox's Base64 decoder does not translate. Compact JSON Web Tokens use unpadded Base64URL and dots between segments. Use the JWT decoder for readable token headers and claims.
URL percent encoding and form values
Look for a percent sign followed by two hex digits, such as %2F for a
slash. Under RFC 3986,
some characters delimit parts of a URL. Encoding them lets those characters travel
inside a component, such as a query value carrying a second URL. In phishing triage,
preserve the full original link and decode the parameter you are investigating separately.
A decoded slash, ampersand or equals sign may be part of the value.
URL encode treats the input as a single component and renders a space as
%20. URL decode interprets a literal plus sign as a space, following the
form encoding convention.
A plus sign in a non-form URL can have a literal meaning. Check the source format before
accepting the decoded output. Preserve the original when an application parses the value
differently.
Hex and SHA fingerprints
Hex uses two digits from 0–9 and A–F per byte.
Look for pairs such as 68 65 6c 6c 6f in byte dumps or in fields that
explicitly describe binary data as hex. The toolbox removes whitespace and
0x markers, requires pairs of hex digits and displays the result as UTF-8.
Invalid UTF-8 can appear as replacement characters. Hex Encode converts the input's
UTF-8 bytes to lowercase hex. Use the original bytes for binary comparisons.
The SHA algorithms here return lowercase hex digests of the UTF-8 text you paste. SHA-1 is 40 hex characters, SHA-256 is 64 and SHA-512 is 128. Those lengths are clues in malware-hash fields or integrity logs. Confirm the algorithm from the field name or publisher. Use SHA-256 or SHA-512 for new comparisons and keep SHA-1 for legacy records. To compare an attachment against a known file digest, hash the original file bytes with a file hashing utility.
Epoch seconds, milliseconds and dates
Epoch timestamps count time from midnight UTC on January 1, 1970. The tool treats
exactly 10 digits as seconds and exactly 13 digits as milliseconds. Other input goes
through the browser's date parser. Use an explicit time zone, as in
2024-01-01T00:00:00Z. Confirm the original unit in the log schema.
Worked examples
| Operation | Input | What to expect |
|---|---|---|
| Base64 decode | aGVsbG8= | hello |
| Base64 decode | /w== | Hex preview ff |
| URL decode | next%20step%2B1 | next step+1 |
| Hex → | 0x68 65 6c 6c 6f | hello |
| Epoch ↔ date | 1704067200000 | 2024-01-01T00:00:00.000Z |
Enter 2024-01-01T00:00:00Z to go the other way. The tool returns
1704067200 seconds and 1704067200000 milliseconds.
Suppose a mail gateway logs a link from a message as
https://example.org/redirect?next=https%3A%2F%2Fexample.com%2Fhelp.
Decode only the value that follows next=. The result is
https://example.com/help, a different host from the redirector.
Record both names. Use existing proxy logs to confirm where any observed request went.
Hash hello with SHA-256 and save the result. Add a line break after the
word and hash it again. The digest changes because the input bytes changed. This is a
useful check when two logs disagree about the same supposed digest. Confirm each side
hashed the exact same data with the same algorithm.
What to do with your result
Keep the original field, its source, the operation and the result. Record timestamp units and correlate events in UTC. For a suspicious link, record the decoded destination as text and continue the phishing investigation with the original message headers. For a token, use the JWT security checklist before drawing conclusions about who issued it or whether a service should accept it.
FAQ
How do I know whether a string is Base64 or hex?
Check the field label and character set. Hex uses pairs of digits from 0–9 and A–F. Standard Base64 also permits other letters, plus and slash, with possible trailing equals signs. Some strings can fit both alphabets.
Why does Base64 decoding show a hex preview?
The Base64 converted to bytes, but those bytes failed the tool’s UTF-8 check. They may be binary data or text in another encoding. Use the source to identify the intended format.
Why did URL decoding turn a plus sign into a space?
This decoder follows the form convention for a literal plus sign. In a form value, %2B preserves a plus. Check the context before interpreting plus signs from other parts of a URL.
Can I decode a SHA-256 hash?
A SHA-256 digest is a fingerprint. Compare it by hashing the same candidate bytes with SHA-256 and checking whether the two digests match.
Can this tool calculate a file’s SHA-256 checksum?
It hashes the UTF-8 text in the input box. Use a file hashing utility for the original file bytes, including for an attachment that was represented as Base64 in email.
How do I tell epoch seconds from milliseconds?
Confirm the unit in the source documentation. This tool treats exactly 10 digits as seconds and exactly 13 digits as milliseconds, and displays an ISO date in UTC.
From the channel
Is Your Download Fake? One PowerShell Line Tells You
Watch safe, hands-on security demonstrations for complete beginners on The Exploit HQ ▸
Practical Malware Analysis: The 10 Commands You Need in 2026
Watch safe, hands-on security demonstrations for complete beginners on The Exploit HQ ▸
kev brief
Patch what's actually being exploited.
Subscribe and get the KEV Patch Priority Playbook, free, in your inbox now.
Free. No spam. Unsubscribe anytime. Delivered by Beehiiv.