Base64 Encode
Convert text to standard or URL-safe Base64
What is Base64 Encode?
Base64 Encode converts text into a Base64 string. It is useful for checking a value before sending it to an API, preparing a value to place in a URL, or encoding multi-line data one line at a time.
The result updates as you type, and you can switch between standard and URL-safe output.
How to Use
- Enter the text.
- Turn on line-by-line encoding or URL-safe output if needed.
- Copy the result where you need it.
Main Settings
Encode Each Line
Encode every line of a multi-line text separately. This is useful for test data where each line is a separate value. When it is off, the entire input, including line breaks, becomes one Base64 string.
URL-Safe Output
A trailing = is padding, added so the encoded length is a multiple of four. URL-safe output replaces + with -, / with _, and drops this padding. Use it when Base64 needs to be part of a URL or query parameter.
hello@example.com
aGVsbG9AZXhhbXBsZS5jb20Use Cases
- Checking a value in Base64 before sending it to an API
- Encoding a value in URL-safe form for a URL
- Encoding multiple lines as separate values
- Inspecting values around authentication headers or tokens
Things to Keep in Mind
- Base64 is encoding, not encryption. Anyone can decode it, so it does not protect sensitive information
- URL-safe output differs from standard Base64. A system that expects standard Base64 needs
-and_restored and the padding added back
Last updated:

