Encode text to Base64
Encode any text in Base64, accents and emoji included.
Everything runs in your browser. Nothing you type or paste is sent to a server.
How to encode text to Base64
- 1
Type or paste the text.
- 2
Turn on “URL-safe” if it goes into a URL or a token.
- 3
Copy the result.
About this tool
Base64 represents data with 64 safe characters so it can travel by email, sit inside JSON or go into HTTP headers.
Text is converted to UTF-8 before encoding, so “ñ” or “😀” work correctly. Base64 isn't encryption: anyone can decode it.
Frequently asked questions
Does Base64 protect my data?
No. It's an encoding, not encryption. Anyone can decode it.
What is URL-safe Base64?
A variant that uses - and _ instead of + and / and drops the = padding, so it works in URLs and JWTs.
Related tools
- Images
Favicon Generator
Create favicon.ico and every icon your site needs from an image or letters.
- Images
Image to Base64
Turn an image into Base64 or a data URI for HTML, CSS or JSON.
- Images
Base64 to Image
Decode Base64 or a data URI and download the image.
- Images
Image Color Picker
Get the HEX, RGB or HSL code of any point in an image.