Для разработчиков

Кодирование и декодирование Base64

Кодирование текста и файлов, декодирование Base64.

Кодирование и декодирование Base64

Работает на UtilBrix

Base64 is an encoding, not encryption. Anyone can decode Base64 content.

Данные остаются в вашем браузере. Аккаунт не нужен.

Подробные методы и примеры доступны на английском.

Step-by-step instructions (English)

  1. Choose Text to Base64, Base64 to Text, or File to Base64.
  2. Paste text for text conversion, or select the source file for file encoding.
  3. Run the conversion and copy or download the output as offered.

Формула и метод

Text is converted to UTF-8 bytes before Base64 encoding. Decoding reverses Base64 to bytes and checks that they form valid UTF-8 text. File encoding returns the raw Base64 representation of its bytes. Base64 does not protect confidentiality.

Практический пример

The text Hello encodes as SGVsbG8=. Indian-language text and emoji are supported through UTF-8 encoding.

When this tool is useful

Prepare small encoded payloads or inspect a Base64 string returned by an API. The text modes use UTF-8 so characters outside the basic Latin alphabet can be encoded without treating them as single-byte text.

Common mistakes and limitations

  • Base64 is reversible encoding and provides no encryption.
  • Raw Base64 and a data URL are different: a data URL adds a MIME-type prefix that a raw Base64 consumer may not accept.

Practical questions about this tool (English)

Why does decoded binary data fail the text check?

Not every byte sequence is valid UTF-8 text. An encoded image or archive should be handled as binary by the receiving application rather than interpreted as a readable string.

Does Base64 reduce file size?

No. Encoding maps each three bytes to four Base64 characters, with padding where needed. It generally increases the size before any separate transport compression.

Другие полезные инструменты

Установить UtilBrix

Открывайте инструменты с главного экрана.

  1. Откройте меню браузера (⋮).
  2. Выберите «Установить приложение» или «Добавить на главный экран».
  3. Подтвердите добавление UtilBrix на главный экран.

Если пункта нет, откройте страницу в Chrome на Android.

Поиск инструментов

↑ ↓ Navigate · Enter Open · Esc Close