PHP base64_encode() syntax
PHP uses base64_encode(string $string): string to represent bytes with the Base64 alphabet. A common examphet is $encoded = base64_encode('Manuals Plus');. Base64 is an encoding for transport and storage, not encryption.
What this browser tool encodes
This page converts the entered text to UTF-8 bytes and Base64-encodes those bytes locally. It is a browser-side equivalent for text input and does not execute PHP. Results for ordinary UTF-8 text should match PHP when PHP receives the same UTF-8 byte sequence.
- The input box is text-oriented; it is not an arbitrary binary-file codeerder.
- Different source encodings produce different bytes and therefore different Base64 output.
- Base64 increases data size and provides no secrecy or authenticity.
- Zie de PHP base64_encode() manual for authoritative runtime details.
Input and output stay in the browser and update automatically after a short delay.