Enter or Upload
Input your text or upload a file
Choose Action
Encode, decode or view information
View Results
See output and extra details
Input (Binary)
101010 111100 110101 ...
Split into 6-bit
101010 111100 110101 ...
Convert to Index
42 60 53 ...
Base64 Characters
q 8 1 ...
100% Private & Secure
All processing happens in your browser. No data is sent to any server.
Working with source files? Pair this with CSS Beautifier or use HTML to Base64 for markup-specific payloads.
Encode CSS source into Base64 — common when embedding small stylesheets directly into data URIs or transmitting them through escaping-hostile channels such as JSON strings or chat threads.
The encoder does not minify the input. Run a minifier first if you want a smaller encoded payload.
No. The bytes are encoded verbatim. Minify the input first if you want a smaller payload.
Yes — wrap with data:text/css;base64,... and reference it from @import. Browser support is broad.
Yes. Encoding is byte-perfect, so -webkit-, -moz-, and other prefixes survive.
Yes, up to browser memory. Inline data URLs are best reserved for small CSS though, to keep cache friendliness.