Which conversion tool should you choose?

Purpose of using three development tools
ToolsInput exampleWhat Moyoutil does
JSON Formatter and Validator{"count":3,"ok":true}JSON parsing and indentation or compression
Base64 Encoder and DecoderHelloConvert or revert UTF-8 text to standard Base64
URL Encoder and Decodera&bPercent-encode or revert reserved characters in URI components

Repeatedly encoding data without knowing what transformation it has undergone may produce results that are different from the original data. First, check the format of the input and the rules on the receiving end of the result.

How to organize JSON and use grammar check

Paste the data into Moyoutil JSON Cleanup and press Clean/Verify to apply indentation. Compression removes displayable whitespace outside the string. After checking the grammar, output it as an original text token to maintain numerical notation, key order, and duplicate keys. Input supports UTF-8 2MiB and up to 128 levels of nesting.

{"count":3,"ok":true}

{
  "count": 3,
  "ok": true
}

Even when the input is within the limit, indentation can enlarge the output beyond the UTF-8 8MiB output limit. Use minify mode in that case.

Use double quotes in JSON strings and property names. Single quotes, comments, and commas after the last item are treated as errors by this tool.

References: RFC 8259

Even if the grammar check passes, the required fields or data types required by a specific API have not been verified. This tool does not have API schema validation functionality. The output of this tool preserves the original notation of large integers. However, it is safe to pass large integer identifiers as strings in JavaScript programs that receive results.

{"id":"9007199254740993"}

The usual combination of JSON.parse and JSON.stringify can change the number 1.0 to 1. Moyoutil does not use this reserialization method for output and maintains the original 1.0. Interpretation of duplicate keys may vary depending on the receiving program, so check the meaning of the results as well.

References: ECMAScript JSON.stringify

Base64 encoding/decoding and Hangul processing

Moyoutil turns text into UTF-8 bytes and then encodes them with standard Base64. The inverse conversion reads Base64 bytes as UTF-8 text.

References: RFC 4648

Hello → SGVsbG8=
안녕 → 7JWI64WV

When you press encoding, the string on the right appears, and if you input the string and decode it, you get the original text on the left. This example can be verified with Moyoutil's UTF-8 conversion function. Whitespace and newlines in the Base64 string being decoded are removed before processing.

Base64 is not an encryption or password protection feature. Do not use it to hide credentials or passwords, as it can be reversed without a key. This tool is for text only and does not provide the ability to restore arbitrary binaries such as images or compressed files. Base64URL used in JWT or JWT signature verification are also not included in the scope of support.

Decoding errors are divided into standard Base64 format errors and UTF-8 text errors. Even if you can read it as Base64 like /w==, it is an error if the bytes are not UTF-8 text. Modifying the input clears the previous results and disables the copy button. Again, copy only the current results that successfully converted.

Apply URL encoding to parameter values

Moyoutil uses encodeURIComponent and decodeURIComponent. It is geared toward converting a single parameter value rather than an entire address.

References: ECMAScript encodeURIComponent

a b → a%20b
a&b → a%26b
한글 → %ED%95%9C%EA%B8%80

You can put the parameter value converted above into the q field of the address as shown below. If you put the entire address into this tool, the colons and slashes will be converted as well, so you'll end up with a different string than a regular link.

https://example.com/?q=a%26b
%20 → %2520

The second example is the result of re-encoding already encoded whitespace. If you don't know how many times the recipient will decode the result, don't repeat the conversion arbitrarily. In this tool, the plus sign is a plus sign when decoded, and should not be confused with whitespace handling rules for HTML forms.

If there are two hexadecimal digits after %, it is a percent notation error. Even if the notation is correct, such as %FF, if it is not the correct UTF-8 byte, a separate error will be issued. Input is not automatically corrected, so please check whether any parts were cut off during copying or the original encoding before converting again.

Check the original and purpose before conversion

Moyoutil's three conversion tools process input in the browser and do not upload it to the tool server. However, it is not a function that controls the surrounding environment such as shared devices, extensions, and clipboard synchronization. Check your transformation rules using test data instead of actual secret tokens.

JSON grammar checking or URL encoding alone cannot ensure application security. Processing appropriate to the context to be output, validation of inputs to be accepted, and authentication and authorization checks must be implemented separately in the service being used.

Frequently Asked Questions

If I convert JSON to Base64, can I check if it is valid JSON?

No. Base64 conversion only encodes strings and does not check JSON syntax. Check with the JSON cleanser first.

Why does URL decoding fail?

An error may occur if there is an incorrect percent notation or an invalid UTF-8 combination. Check whether the string was truncated during the copy process and what rules it was originally encoded with.