EncodingTool 01
Base64 Encoder
Convert text to Base64 for an API payload, a data URL or a token. URL-safe mode replaces + and / so the string survives in a query string.
Encode to Base64
06 / 232Result
WaitingRun the tool and the result appears here. Copy it or download it — nothing leaves this tab.
Privacy
Your file is read with the browser's File API and processed in this tab. Nothing is uploaded, and no copy is kept on a server.
How to use it
Type or paste the text you want to encode into the input box.
Leave URL-safe off for standard Base64, or turn it on when the value will sit in a URL or JWT.
Copy the encoded string; it updates as you type.
When to use it
API payloads
Encode a small text field for a service that expects Base64 JSON values.
Data URLs
Prepare short inline SVG or text content for a data: URI.
Tokens
Produce URL-safe Base64 segments for signed token experiments.
Questions
Is Base64 encryption?
No. It is a reversible encoding. Anyone can decode it, so never use it to hide passwords or secrets.
Why does the output end with equals signs?
Padding makes the length a multiple of four. URL-safe output often drops the padding.
Does it handle emoji and accents?
Yes. Text is encoded as UTF-8 first, so non-ASCII characters round-trip correctly.
What is base64url used for?
Base64url is the URL-safe alphabet: + and / become - and _, and padding is dropped. It is what JWT segments and query parameters use, so the string can sit in a URL without extra escaping. Turn on URL-safe output and this page produces it directly.
Can I convert text to base64 online without installing anything?
Yes. The conversion runs in this tab as you type, so there is nothing to install and no upload step. Once the page has loaded it keeps working even if you go offline.