How do I encode text to Base64?
Type or paste your text and click Encode to Base64. This free Base64 encoder converts the UTF-8 bytes of your text into the 64 safe characters of the Base64 alphabet (A-Z, a-z, 0-9, + and /), adding=padding when needed. For example, “Hello” encodes to SGVsbG8=and “FastToolKit” encodes to RmFzdFRvb2xLaXQ=. Because the tool encodes UTF-8 bytes first, accents and non-English text work correctly: “café” encodes to Y2Fmw6k=, and Urdu, Arabic, Chinese and emoji round-trip without corruption, which naive encoders that only handle Latin-1 get wrong. Encoded output is about 33% larger than the input (every 3 bytes become 4 characters), which is the price of representing binary data in plain text.
How do I decode Base64 back to text?
Paste the Base64 string and click Decode from Base64. The decoder ignores whitespace and line breaks, so Base64 copied from emails, logs or wrapped config values still works, then converts the bytes back to UTF-8 text. SGVsbG8=decodes to “Hello”. If the input is not valid Base64 (illegal characters, bad padding, or plain text that was never encoded), the tool shows a clear error instead of garbage output, so you know immediately that something is wrong with the source string. Common causes are truncated strings missing their final=padding, URL-safe variants that use - and _ instead of + and /, and strings that were encoded twice. Try decoding once more, or check the original source, before assuming the data is corrupt.
What is Base64 used for?
Base64 exists because many systems were built to carry plain text, not raw binary. Email (MIME) encodes attachments in Base64 so images and files survive mail servers. Web pages embed small images and fonts as Base64 data URLs to avoid extra requests. APIs and config files store binary values, certificates, keys and tokens as Base64 text. HTTP Basic authentication sends credentials as Base64 (which is exactly why it must run over HTTPS). JSON Web Tokens (JWTs) use a URL-safe Base64 variant for their header and payload. In every case the goal is transport safety, not secrecy: Base64 makes data survive text-only channels unchanged, at the cost of about 33% more size.
Is Base64 encryption? Is it safe?
No. Base64 is encoding, not encryption, and it provides zero security. Anyone can decode Base64 instantly with a tool like this one, no key or password needed. Never use Base64 to hide passwords, API keys or personal data, and be suspicious of any product that claims Base64 “encrypts” anything. Real protection comes from encryption (AES, TLS) and proper password hashing (bcrypt, Argon2), after which the encrypted bytes are often Base64-encoded just for transport. The safety question that does apply here is privacy of this tool: encoding and decoding run entirely in your browser, so tokens and payloads you paste are never uploaded, stored or logged. Still, avoid pasting production secrets anywhere you do not need to, and rotate any secret you have shared in plain text.
Base64 vs Base64URL: what is the difference?
Standard Base64 uses + and / and=padding, which are awkward or illegal in URLs and file names. Base64URL swaps + for - and / for _, and often drops the padding, so the result can sit safely in a URL, a JWT or a file name without escaping. The data is identical; only the alphabet changes. If a string fails to decode here, check whether it contains - or _ characters: that marks it as Base64URL, and converting those two characters back to + and / (and restoring=padding to a multiple of four) usually fixes it. MIME Base64 in email may also insert line breaks every 76 characters, which this decoder ignores. When you produce Base64 for URLs yourself, prefer the URL-safe variant from the start.
Is it free and private?
Yes. The Base64 encoder and decoder is free, with no signup, no account and no limits for everyday text. Everything runs in your browser: your input is never sent to a server, stored or logged, and it disappears when you close or reload the tab. Character counts under the output show the size change in both directions, which helps confirm the roughly 33% growth when encoding. For very large files (megabytes of binary), command-line tools like base64 on Linux or certutil on Windows are more practical, but for API payloads, tokens, config values and everyday debugging, this page encodes and decodes instantly with correct UTF-8 handling.