YAML URL Encode
Percent-encode a YAML document for a query string or a form field, with indentation and colons preserved after decoding.
What URL-encoding YAML does
YAML carries meaning in whitespace, so an encoder that normalised a line break would change the document. This one encodes the text byte for byte: the indentation becomes %20 sequences, the colon between a key and its value is escaped, and decoding restores both exactly. Use it to pass a small manifest as a parameter; a large one belongs in a file.
How to use it
YAML URL Encode: paste the YAML into the box above, and press Run to get the URL-encoded text below.
Worked example
Input:
name: Ada
roles:
- admin
- author
tags:
math: true
Output:
name%3A%20Ada%0Aroles%3A%0A%20%20-%20admin%0A%20%20-%20author%0Atags%3A%0A%20%20math%3A%20true%0A
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads YAML and returns URL-encoded text; reloading the page discards both.
YAML carries meaning in whitespace, so an encoder that normalised a line break would change the document. This one encodes the text byte for byte: the indentation becomes %20 sequences, the colon between a key and its value is escaped, and decoding restores both exactly. Use it to pass a small manifest as a parameter; a large one belongs in a file.
Percent-encode a YAML document for a query string or a form field, with indentation and colons preserved after decoding.
How to use it
YAML URL Encode: paste the YAML into the box above, and press Run to get the URL-encoded text below.
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads YAML and returns URL-encoded text; reloading the page discards both.
What to Expect
Best for
- Converting YAML to URL-encoded text when the data is already on screen.
What this tool keeps
- Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.
Sample input
name: Ada roles: - admin - author tags: math: true
Sample output
name%3A%20Ada%0Aroles%3A%0A%20%20-%20admin%0A%20%20-%20author%0Atags%3A%0A%20%20math%3A%20true%0A
Frequently asked questions
How do I use the yaml url encode?
YAML URL Encode: paste the YAML into the box above, and press Run to get the URL-encoded text below.
Is my input uploaded?
No. The text is parsed on this page with JavaScript and is never posted to a server.
Is there a size limit?
Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.