Back to Tools

Base64 Encoder Decoder

My tools
No tools yet

Loading...

Encode and Decode Base64 Online

  1. 1

    Choose a mode and encoding format

    Switch between Encode and Decode modes and pick standard Base64 or URL-safe Base64 as needed; decoding follows the selected format, and URL-safe mode restores missing padding automatically.

  2. 2

    Enter text or upload a file

    Paste any UTF-8 text in text mode, or drag and drop a file in file mode with a 5MB limit per file.

  3. 3

    Check the result and image preview

    The result is generated instantly and can be copied with one click; decoded image content is detected automatically and previewed as PNG, JPEG, GIF or WebP.

  4. 4

    Keep history and reverse operations

    Conversions are stored in local history (last 20 entries) and can be restored at any time; the Swap button flips input and result so encoding and decoding flow into each other.

Features Overview

Encode and decode text or files using Base64, supporting both standard and URL-safe formats with automatic image preview detection.

Tool Description

Support standard Base64 and URL-safe formats. Encode text or files, automatically recognize and preview image content, and save history records.

Last updated

Capabilities Checklist

  • Support both standard Base64 and URL-safe Base64 encoding formats to meet different use cases.
  • Text mode handles UTF-8 character encoding perfectly, including Chinese and other multilingual content.
  • File upload mode supports drag-and-drop and click-to-upload with a 5MB limit for optimal performance.
  • Automatically detect Base64-encoded images and preview them in real time, supporting PNG, JPEG, GIF, and WebP formats.
  • Save the last 20 conversion records locally, with the ability to restore, delete, or clear history at any time.
  • Swap input and output with one click for quick reverse operations.
  • Copy functionality includes success feedback, with sample data provided for quick testing.

User feedback

Your feedback will be reviewed (and redacted if needed) before it appears publicly. Please do not include emails, passwords, or other personal information.

Your feedback helps us do better ❤️

Related Tools

Related Guides

Frequently Asked Questions

Which Base64 formats does this tool support?
Two formats: standard Base64 and URL-safe Base64. Both encoding and decoding follow the format you select; URL-safe decoding maps -_ back to +/ and restores missing padding, so unpadded input works too.
Which characters can text mode handle?
The full UTF-8 character set: Chinese, emoji and other multilingual text are encoded correctly without escaping anything in advance; the result is generated as you type.
How large can uploaded files be?
Drag and drop or click to upload, with a 5MB limit per file; both text and binary files are converted to Base64, and files over the limit get a clear notice instead of silent truncation.
What appears when the decoded content is an image?
The tool detects Base64 images automatically and previews them in real time; PNG, JPEG, GIF and WebP are displayed directly, while other content is shown as copyable text.
How many entries does the conversion history keep?
The last 20 records are saved in your browser locally, ready to restore, delete or clear at any time; records never leave your device.
Where is the shortcut to reverse an encoding or decoding result?
The Swap button puts the result back into the input area in one click, turning an encoding result into decoding input and vice versa; the Example button offers a quick tour of both modes.