jump totool workspace
ToolHub

Base64 encoder / decoder

Handles Base64 encoding, decoding, and URL-safe formatting of text.

Runs the entire process locally
views
—
favorites
—

Raw text · UTF-8

1 lines · UTF-8Loading…

Base64 results

1 lines · UTF-8Read only results
UTF-8 text → Standard Base64. Base64 is encoding, not encryption.

input bytes

7

Output bytes

12

Output/Input

1.71 times

Tool description and FAQ

Tool Guide

01Convert UTF-8 text to Base64 and vice versa

Select encoding or decoding and enter your content, the results update instantly. Chinese and Emoji are first converted to UTF-8 bytes and then Base64 encoded; the decoding result must be valid UTF-8 text.

02Standards, URL safety, and newlines

The standard format uses +, / and trailing = padding; the URL-safe format uses -, _ and removes padding instead. 76 Column wrapping only affects encoded output. Decoding is compatible with both character tables, missing padding, and whitespace wrapping.

03File, edit and save results

Open or drag a text file into the input area and use line numbers and search to locate the content. Results can be copied or downloaded; reverse transformation puts the current results back into the input area and switches direction. Inputs and files can be up to 5 MB and are only processed in the current browser. Content is not uploaded and will not be automatically saved.

FAQ

Q1Why is there no result after decoding?

First check if the input is really Base64, then check if the decoded data is UTF-8 text. Compressed packages, images, or encrypted bytes generally cannot be decoded as text. Old results are not retained for downloading on error.

Q2Why don't URL security results have an equal sign?

URL safe mode removes trailing padding; auto-padding when decoding. Does not mean data loss. + and / will be replaced by - and _ respectively, making it easier to use in URL or token scenarios.

Q3Will line breaks change the decoding results?

Decoding ignores whitespace and newlines, so 76-column newlines do not change the original bytes. Original text wrapping during the encoding phase belongs to the content itself and will affect the results.