This tool encodes text so it can be used safely inside a web address, and decodes percent-encoded URLs back into readable text. URLs are only allowed to contain a limited set of characters, so anything outside that set, including spaces, ampersands, question marks, slashes used as data, accented letters and other symbols, must be converted into a safe form called percent-encoding, where each disallowed character is replaced by a percent sign followed by its character code. This is why you see things like %20 for a space or %26 for an ampersand in web links. Getting this right matters whenever you build a link, pass data in a query string, or work with APIs and web requests, because an unencoded special character can break the URL or change its meaning. This tool handles both directions. You paste your text and choose to encode or decode, and the calculator converts it instantly: encoding turns spaces and special characters into their percent-encoded form, ready to drop into a URL, while decoding reverses the process to recover the original readable text. It handles full Unicode correctly through UTF-8, so accented characters, macrons and emoji survive the round trip. Everything runs in your browser, so your text is never uploaded. Use it to build query strings, to debug a URL that is not working, to read an encoded link, or to prepare data for an API request. The encoding used is the component encoding, which is the right choice for individual values such as a single query parameter, because it encodes the special characters that separate parts of a URL. If you paste a malformed encoded string when decoding, the tool will tell you rather than produce garbled output.
Uses component encoding (encodeURIComponent), right for individual query values. Handles full Unicode via UTF-8. Runs entirely in your browser; nothing is uploaded.
To encode, each character that is not allowed in a URL is replaced with a percent sign followed by the hexadecimal code of its UTF-8 bytes, so a space becomes %20 and an ampersand becomes %26. To decode, the reverse happens: each percent-code is turned back into the character it represents, recovering the original text.
Encoding the phrase kia ora & welcome to Aotearoa! produces kia%20ora%20%26%20welcome%20to%20Aotearoa! The spaces become %20 and the ampersand becomes %26. Switching to decode mode and pasting that back returns the original phrase exactly, including the spaces and ampersand.
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.
© 2019 to 2026 Calculate.co.nz. All rights reserved.