Base64 is the standard way to write any data using only letters, digits and a few symbols, so it can travel where only text is allowed: email, JSON, URLs, configuration files. Type some text and see it in Base64; paste some Base64 and see it decoded. For example MA== becomes 0.

Bytes (hexadecimal)

—

The same in the RouterOS terminal

Ready-to-copy RouterOS commands are for those in the dojo. Entry is free: with your email you get them in one click, along with real-time security alerts.

Enter the dojo for free I am already registered

Type in either box: the other one updates as you type. Text is encoded as UTF-8. The conversion happens in your browser: nothing is sent to the server.

Want to understand how Base64 works, step by step and with RouterOS examples? Read the Base64: what it is, how it is computed and what it is for article in the Knowledge base.

How does Base64 work?

It takes the bytes in groups of 3 (24 bits) and splits them into 4 chunks of 6 bits; each chunk becomes one of the 64 characters A-Z, a-z, 0-9, + and /. If bytes are missing at the end to complete the group, = is added. The character 0 is a single byte (0x30): that leaves 2 useful characters and 2 of padding, which is why it becomes MA==. The result is always about one third longer than the original.

Is Base64 encryption?

No. It is only an encoding: anyone can turn it back into the original text in an instant, without any key. A password or token written in Base64 is, for all practical purposes, a plain-text password. If you find a Base64 string in a configuration, in an Authorization: Basic header or in a script, treat it as readable by anyone who sees it.

Where do I meet it with MikroTik?

In WireGuard keys (32 bytes written in Base64, always 44 characters ending with one =), in certificates and keys in PEM format (the block between -----BEGIN and -----END is Base64), in HTTP Basic authentication for the RouterOS REST API, and when a script uses /tool fetch with an authorization header. You do not need to decode a WireGuard key to paste it, but the byte box above tells you whether it is really 32 bytes long.

What is base64url?

A variant for web addresses and JWT tokens: it uses - and _ instead of + and /, which have a meaning in URLs, and usually drops the trailing =. The converter recognizes it automatically when decoding; to encode in base64url, tick the box under the Base64 field.

Frequently asked questions

Is the text I type sent anywhere?

No. The conversion happens in your browser with JavaScript: the page sends nothing to the server and records nothing.

Why does decoding sometimes say it is not text?

Because Base64 can hold binary data, such as a key, an image or a compressed file, which is not readable text. In that case you will find the bytes in hexadecimal in the box below.

Does it accept Base64 split over several lines?

Yes: spaces and line breaks are ignored, and missing = padding is added automatically.

Is it free?

Yes, like the other tools in the Tools section, and you do not need to be a dojo member.