Base64 Encoder
Encode text to Base64 format.
How to Use Base64 Encoder
Paste the text, username and password pair, or the credential string you want to encode.
Click the "Process" button to produce the Base64 output, with any required padding already added.
Check the output is a continuous run of letters, numbers, plus, slash and equals signs with no spaces.
Copy the encoded string with one click, or download it as a .txt file for use in a header or URL.
Features
Frequently Asked Questions
Related Tools
Word Counter
Count the number of words in your text instantly.
Character Counter
Count characters with and without spaces.
Sentence Counter
Count the number of sentences in your text.
Paragraph Counter
Count paragraphs in your text content.
Text Case Converter
Convert text between different cases - upper, lower, title, sentence.
Uppercase Converter
Convert text to UPPERCASE letters.
About Base64 Encoder
Base64 is the most common way of rewriting binary or text data so it can survive being carried through systems that only accept a restricted alphabet. It maps every three bytes of input onto four printable characters drawn from A-Z, a-z, 0-9, plus and slash, with equals signs padding the end. The output is a third larger than the input, and it contains no characters that would break an email header, a URL query parameter or a shell command.
That property is exactly why people reach for it. HTTP Basic Authentication is the everyday example: a username and password are joined with a colon, Base64 encoded and sent in an Authorization header - and if you are ever debugging a request that returns 401, decoding that header tells you immediately which half of the credential is wrong. Data URIs use the same trick, which is how a small icon or font can be embedded directly in a CSS or HTML file.
One point deserves emphasis: Base64 is encoding, not encryption. Anyone can decode it instantly with no key, so never use it to hide a password, an API key or anything else you actually need to keep secret. It is for transport and for format compatibility only. Paste your text, check the result, and use it for what it is good for.
When to Use This Tool
- Creating or checking a Base64 string for an HTTP Basic Authorization header
- Embedding a small icon or font as a data URI in CSS or HTML
- Preparing a string to pass through a URL, a header or a command line safely
- Debugging a login form or an API call that keeps returning 401
- Testing that a downstream service decodes your text the way you expect