Tools
English

Neogie Base64 · Developers and SEO

Base64 Encoder and Decoder: Text, Files and JWT

Type on one side, the result appears on the other. Text, files and JWT tokens, with nothing uploaded.

Settings

Everything happens in your browser: nothing you type is sent.

Base64 is not encryption

Base64 protects nothing. It is a public encoding, with no key and no password, that anyone can reverse in a second, with this page for instance. A password or an access key written in Base64 is a secret written in plain sight. To hide information you need real encryption.

What is Base64 for?

It rewrites any bytes using 64 safe characters: letters, digits and two symbols. That lets a file travel inside an email, a JSON document, an HTML page or a style sheet. The price is size: the result is about one third larger, because three bytes become four characters.

How to encode or decode

Type in the “Text” box to encode, or paste Base64 into the second box to decode it. Accents, emoji and Asian scripts are handled as UTF-8; Windows-1252 and UTF-16 are also available for old or Windows-specific files.

When decoding, spaces, line breaks, missing padding and the data: prefix are tolerated. A forbidden character is reported with its position. If the result is not text, it is shown in hexadecimal and can be downloaded as a file.

The variants

  • Standard: the + and / signs, completed with = up to a multiple of four characters.
  • URL-safe (base64url): - and _ instead, often without =, for a web address, a file name or a token.
  • MIME: lines of 76 characters, as in emails.
  • PEM: lines of 64 characters, as in certificates.

Files, data URIs and JWT tokens

The File tab turns an image or a document into Base64, on its own or as a data URI ready to drop into a page. It also works the other way round. The JWT tab shows a token's header and payload, with readable dates. It does not verify the signature.

Frequently asked questions

Is Base64 secure?

No, in the sense that it hides nothing: anyone can decode it. It is meant to carry data, not to protect it.

Is my data sent anywhere?

No. Text, files and tokens are processed in your browser and are not saved. Only your settings are kept on your device.

Why does the result end with = or ==?

Base64 works on groups of three bytes. When the last group is incomplete, the = sign fills up the block of four characters.

Why do accented letters look wrong after decoding?

The text was probably encoded with another character set. Try Windows-1252 or UTF-16 in the “Text encoding” setting.

How large can a file be?

Up to 500 MB, processed in chunks so the page stays responsive. The real limit depends on your device's memory.

Similar tools

Neogie SnippetSERP Snippet Preview ToolType a title and a description: the simulated result shows where they will be cut off. Neogie CRC32CRC-32 Calculator for Text and FilesThe checksum of a text as you type, or that of a file you want to compare. Neogie FileDiffCompare two files or folders: text and bytesDrop two files or two folders: differences appear at once, by line for text and by byte for everything else. Neogie BinaryBinary Translator: Text to Binary and BackType a message to see it in 0s and 1s, or paste binary to read it. Neogie HexText to Hex and Hex to Text ConverterType text to see its bytes, or paste hexadecimal to get the text back. Neogie PunycodePunycode Converter for Internationalized Domain Names (IDN)Turn a domain name with accents or other scripts into its “xn--” form, and back. Neogie Ascii85Ascii85, Z85 and Base85 Encoder and DecoderText or files to Base85 and back: five characters for every four bytes. Neogie Base32Base32 Encoder and DecoderText or files to Base32 and back, with the three most used alphabets. Neogie Base58Base58 and Base58Check Encoder and DecoderText or files to Base58 and back, with the Base58Check checksum if you want it. Neogie URLURL Encoder and Decoder (Percent-Encoding)Type on one side, the other fills in: addresses, parameters and form data, with every part spelled out. Neogie EntitiesHTML Entity Encoder and DecoderShow code or special characters without breaking the page: the result follows your typing. Neogie CSSCSS Formatter, Checker and MinifierPaste your style sheet: it is tidied up or compacted, and errors are reported. Neogie HTMLHTML Formatter, Checker and MinifierPaste your code: it is indented or compacted instantly, and structural errors are reported. Neogie JSONJSON Formatter and Validator OnlinePaste your JSON: it is checked and tidied up instantly, with the line and column of every error. Neogie SQLSQL Formatter Online: Indent and MinifyPaste a one-line query: it comes out split into clauses, ready to review. Neogie XMLXML Formatter and Validator OnlinePaste your XML: it is checked and indented instantly, with the line and column of the first error. Neogie MetaMeta Tag and Open Graph GeneratorFill in the fields: the preview and the code to paste into your page update instantly. Neogie RobotsRobots.txt Generator and TesterBuild the rules for search engine crawlers, then check which addresses they can visit. Neogie SitemapXML Sitemap Generator from a URL ListPaste your page URLs: your XML sitemap is ready to download. Neogie RegexRegex Tester Online: JavaScript Regular ExpressionsType a pattern and some text: matches and their groups are colored as you type.