Another spelling of the same bytes
Encode text as Base64URL
Base64URL swaps + and / for - and _, and this page omits the padding.
UTF-8 bytes are encoded. Decoding accepts missing padding.
The work stays in this tab.
This tool runs in your browser. Turn on JavaScript to use it.
Base64URL
The sample is fixed. It uses the same rule as the form.
- Input
- hello
- Result
- aGVsbG8
How to use it
- 1Paste the text.
- 2Choose encode or decode.
- 3Copy the result.
Good to know
- A JWT is three of these segments. This page encodes one text value, not a token.
- This page does not upload the text.
- Text longer than one hundred thousand characters is rejected.
Questions
Does the result leave this browser?
No. The calculation finishes in the current tab.
What does this page leave out?
A JWT is three of these segments. This page encodes one text value, not a token.
What if the input is huge?
Past one hundred thousand characters, the page stops and asks you to shorten it.
Related tools
- Base64 encode and decode
Base64 writes bytes as letters, digits, plus, and slash. It is how a token or a file preview survives a text field. It does not hide the contents from anyone who can read the alphabet.
- Decode a JWT
A JWT is header, payload, and signature, separated by dots. The first two parts are readable JSON. The third part is a signature over those two parts, not a place to hide the claims.
- Encode text as hexadecimal
Hex is a way to show raw bytes. This page encodes text as UTF-8 first, then prints each byte. Decoding accepts only an even number of digits and rejects bytes that are not UTF-8.