Base64 Encoder
Encode Unicode text as standard Base64 using UTF-8, entirely in your browser.
Loading tool…
How to use Base64 Encoder
Convert readable text into a standard Base64 string. Accented characters, non-Latin scripts, and emoji are encoded as UTF-8 bytes before Base64 conversion.
- Enter the text to encode.
- Run the encoder.
- Copy or download the standard Base64 result.
Good to know
- Text input only, up to 200,000 characters. This is not a binary-file encoder. Unpaired Unicode surrogates are rejected rather than replaced.
- Uses the standard + and / alphabet with = padding, rather than Base64URL.
- Base64 is an encoding and provides no confidentiality.
Encode an emoji and preserve an intentional leading BOM
The example input starts with an actual, invisible U+FEFF character, followed immediately by Hello and a smiling emoji. The encoder first turns the complete text into UTF-8 bytes, including those for the leading U+FEFF, and then uses standard Base64. Run it and compare the exact output below. Pasting that output into Base64 Decoder should recover the original leading character as well as the emoji. Typing the visible letters backslash-u-F-E-F-F instead would encode a different string, so preserve the actual example input when checking the round trip.
Actual leading U+FEFF, then Hello🙂; the first character is invisible
Hello🙂
Expected standard Base64
77u/SGVsbG/wn5mC
- A byte-order mark already present in the text is preserved; the encoder does not automatically add one to ordinary input.
- This is a text encoder, not a binary-file upload tool. Incomplete Unicode surrogate sequences are rejected rather than replaced.
- The standard alphabet uses + and / with padding when required. Base64 is reversible encoding and does not conceal a password or other secret.
Common questions
Does it encrypt my text?
No. Anyone with the Base64 string can decode it.
What happens to emoji?
They are encoded as UTF-8 bytes and can be recovered with the matching decoder.
Keep going with related tools
All developer →Base64 Decoder
Decode standard Base64 into UTF-8 text with strict alphabet, padding, and byte validation.
DeveloperURL Encoder
Percent-encode a URL component with UTF-8 for safe query parameter and path-segment use.
FilesLocal MIME Message File Builder
Create a UTF-8 plain-text EML file with bounded attachments and encoded Unicode headers, without sending mail.
DeveloperOAuth PKCE S256 Workbench
Generate a random PKCE verifier/challenge or check a supplied S256 pair locally.
DeveloperMultipart Form Body Workbench
Build ordered text/file-like parts or inspect a bounded Base64 multipart body.
FilesData URL Workbench
Encode local file bytes as a data URL or decode a pasted data URL into a file.