Base64 Encoder
Encode text to Base64.
About this tool
Type or paste text and get its Base64 encoding. The text is converted to UTF-8 bytes first, so accented characters and emoji encode correctly. Output uses the standard A-Z a-z 0-9 + / alphabet with = padding.
How to use
How it works
Base64 maps every 3 bytes onto 4 printable characters, so the output is about a third larger than the input. This tool encodes the UTF-8 bytes of your text and pads with = to a multiple of four. Base64 is an encoding, not encryption: anyone can decode it.
Worked example
Plain text
- Input
- Hello, World!
- Output
- SGVsbG8sIFdvcmxkIQ==
- Walkthrough
- 13 bytes become 20 characters, the last two being = padding. A non-ASCII input such as café ☕ gives Y2Fmw6kg4piV.
Limitations
- Text only. It does not encode files or images.
- Output uses + and / and padding. It is not the URL-safe variant, so replace + with -, / with _ and drop = if you need that.
- Base64 hides nothing, so do not use it to protect secrets.
Questions
How do I encode text to Base64?
Does it handle emoji and accents?
Is Base64 encryption?
Why does the output end with ==?
Features
- UTF-8 safe
- Standard alphabet with padding
- Runs in your browser
Guides
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
What Is A RESTful API?
Traversy Media
URL encoding shows up constantly in query strings and API clients.
Watch on YouTubeTypeScript in 100 Seconds
Fireship
Typed JS snippets often get formatted or hashed nearby.
Watch on YouTube
- encodeURIComponent()
MDN
What browser URL encoding actually does—maps to url-encode tools.
- web.dev
Google
Modern web guidance that pairs with encoding and tooling pages.