Turn typed text or any dropped file into a Base64 string, with URL-safe and 76 character wrap options. The encoding runs in your browser and nothing is uploaded.
Your files are processed in your browser, on your own device. Nothing is uploaded to a server.
Base64 Encode turns text or a file into a Base64 string you can paste into code, JSON, an email header or a data URI. Type text and it is encoded as UTF-8, or drop any file into the box and its raw bytes are encoded instead. The tool is free and runs in your browser, so nothing is uploaded.
Type or paste text and it is converted to UTF-8 bytes first, then encoded. That first step is why text in Urdu, Arabic or Chinese, and even emoji, survive the round trip where plainer tools fail or corrupt them. Or skip the text box entirely and drop a file in. The tool reads the raw bytes of the file and encodes those, which is how people turn a small image or a PDF into a string.
Base64 grows data. Three bytes become four characters, so the output runs about a third longer than the input, and the counts under the result show the exact numbers for what you pasted. When the string has to come back one day, the matching Base64 Decode page reverses the trip.
Embedding is the everyday job. A developer encodes a small image, an icon or a font, then builds a data URI from the string inside CSS or HTML, so the picture travels inside the document itself and no separate file has to be hosted or fetched.
APIs ask for it constantly. Plenty of services accept a file only as a Base64 string inside a JSON payload, and plenty of older systems pass attachments the same way through email in the wrapped MIME style. The byte and character counts on this page tell you the size of the payload before you send it anywhere.
Tokens and headers round out the list. The URL-safe toggle swaps + and / for – and _ and drops the padding, which is the form a string needs to sit safely inside a web address. Encoding a password never protects it, because anyone who sees the string can decode it in seconds, so treat encoded values as readable text, never as hidden ones.
The first rule is the one people get wrong. Base64 is encoding, not encryption. It changes how bytes are written so they can travel through systems built for text, and it hides nothing. Never use it to protect a password, a key or anything else that needs to stay secret.
Text is always read as UTF-8 on this page. That covers modern writing systems and emoji, and it is the right default for the web. Old systems that expect a legacy charset such as Latin-1 are not covered here, and a string encoded for one of those systems belongs in a different tool.
Files carry a practical limit rather than a hard cap. The whole file is read into your tab, and the string that comes out is about a third longer again. A very large file makes a very long string, and very long strings choke some text fields and clipboards. Encode big files only when the place you are pasting into can take them.
The encoding runs on your device. Text you type and files you drop are not sent to a server, not stored by ToolPeko and not read by anyone here. There is no account, no daily cap and no file size gate set by us. Close the tab and everything you encoded is gone with it.
Yes. Drop the file into the box and its raw bytes are encoded. That works for images, PDFs, archives and any other file your browser can read.
It swaps + and / for – and _ and drops the padding at the end. That is the alphabet a Base64 string needs before it can sit inside a URL or a token without breaking it.
Base64 writes three bytes as four characters, so the result runs about a third longer. The page shows the input bytes and output characters for your exact input.
Email in the MIME style carries Base64 in lines of 76 characters. Switch the wrapping on when the system receiving your string expects that shape.
No. Base64 is encoding, not encryption. Anyone holding the string can decode it at once, so never use it to hide a password or a key.
No. The file is read and encoded inside your browser. Nothing leaves your device.
Same rules as this one: free, in your browser, with nothing uploaded.
Paste messy JSON, get it neat and valid.
Check JSON and find the exact line that breaks it.
Squeeze JSON down to one tight line.
Open JSON as a tree you can fold and explore.
JSON rows turned into a CSV a spreadsheet can open.
A CSV file turned into clean JSON objects.
JSON rewritten as YAML for config files.
YAML config turned into JSON you can use in code.