Base64 Encoder & Decoder

This tool encodes text into Base64 and decodes Base64 back into readable text, instantly and entirely in your browser. Base64 is a way of representing any data using only 64 safe characters: the letters A to Z in both cases, the digits 0 to 9, and the two symbols plus and slash, with the equals sign as padding. It exists because many systems were built to carry plain text but not arbitrary binary data, so encoding to Base64 lets you tuck binary or special content safely inside places that expect text. You see it constantly in software: email attachments, data URLs that embed images directly in web pages, JSON web tokens, API keys, and configuration files all lean on Base64. Decoding reverses the process to recover the original. With this tool you paste your content, choose whether to encode or decode, and the result appears immediately in the output box, ready to copy. Crucially, it handles full Unicode correctly by working through UTF-8, so accented characters, macrons used in te reo Maori, emoji and other non-English text survive the round trip intact, something many naive Base64 tools get wrong. Everything runs locally in your browser and nothing is uploaded, which matters when you are decoding tokens or keys you would rather not send to a server. Use it to inspect the contents of a token, to prepare a small data URL, to debug an API payload, or simply to learn how the encoding works. Remember that Base64 is encoding, not encryption: it scrambles the look of data but provides no security, since anyone can decode it.

Calculate.co.nz is proud to be partnered with realtor.co.nz, a trusted resource for navigating the New Zealand property market. Their Helpful Articles section offers clear, well-structured insights across buying, selling, and building, making complex real estate topics more accessible. With a focus on up-to-date guidance and practical knowledge, they empower Kiwis to move forward with clarity and confidence in a constantly evolving property landscape.
Calculate.co.nz partner
-

Handles full Unicode via UTF-8. Runs entirely in your browser; nothing is uploaded. Base64 is encoding, not encryption, and offers no security.

How it works

To encode, the text is first turned into UTF-8 bytes, then every three bytes are mapped to four Base64 characters from the 64-character alphabet, with padding added if needed. To decode, the reverse happens: the Base64 characters are turned back into bytes and then read as UTF-8 text, recovering the original including any accented or non-English characters.

Worked example

Encoding the phrase Kia ora, Aotearoa! produces the Base64 string S2lhIG9yYSwgQW90ZWFyb2Eh. Switching to decode mode and pasting that string back returns the original phrase exactly. Because the tool works through UTF-8, macrons and other special characters are preserved through both directions.

Related calculators

If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.

Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.

Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.

Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.

All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.

About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use

Reviewed and maintained. Last reviewed 2026-06-07 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.

© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.