HTTP Basic Authentication
Construct Authorization headers formatted as 'Basic ' followed by the Base64 representation of 'username:password'.
Encode plain text to Base64 or decode Base64 strings into readable text with full UTF-8 and emoji support.
Guide · Developer
Learn how 6-bit Base64 binary serialization functions, avoid UTF-8 truncation bugs, and safely encode web tokens.
Understand the mathematical formulas, benchmarks, and architectural details behind this tool.
Read Full Engineering GuideEncode or decode Base64 text online for API debugging, data transfer, web development and learning.
Choose 'Encode Text → Base64' to transform plain text into Base64, or 'Decode Base64 → Text' to convert back.
Insert strings, authorization tokens, or select one of our pre-built developer sample payloads.
Output recalculates in real-time with UTF-8 support and can be copied with one click.
Construct Authorization headers formatted as 'Basic ' followed by the Base64 representation of 'username:password'.
Embed small icons, SVGs, and web fonts directly into CSS and HTML files using 'data:image/png;base64,...'.
Transmit binary files and attachments through legacy email protocols (SMTP) that only support 7-bit ASCII characters.
Base64 is a binary-to-text encoding scheme defined in RFC 4648. It represents binary data using an alphabet of 64 ASCII characters (A-Z, a-z, 0-9, +, and /). It is designed to safely transmit binary data through communication media designed strictly for textual ASCII characters.
No! Base64 is strictly an encoding format, NOT encryption or hashing. Anyone can instantly reverse and decode Base64 data without any secret key or password. Never store sensitive passwords or tokens in plain Base64.
Base64 encodes every 3 bytes (24 bits) of raw binary data into 4 ASCII characters (each carrying 6 bits of data). This results in a predictable ~33% overhead increase in size compared to raw binary.
Guide · Developer
convert text to Base64 or decode an existing Base64 value. provides a quick browser-based view of Base64 representation without installing a package
Understand the mathematical formulas, benchmarks, and architectural details behind this tool.
Read Full Engineering GuideEncode or decode Base64 text online for API debugging, data transfer, web development and learning.
Enter the text or Base64 value.
Choose encode or decode.
Run the conversion.
Copy the resulting text into your workflow.
Inspect a Base64-encoded API field during debugging.
Create a text representation for a data URI or protocol that expects printable characters.
No. Base64 is an encoding scheme, not a security mechanism. Anyone with the encoded data can decode it.
No. Base64 normally increases the amount of data because binary bytes are represented with text characters.
Use it when a system needs binary or arbitrary bytes represented as text, not when you need confidentiality.