Skip to main content

Transforms Reference

All 53 transforms with their ids for the CLI and an example of each.

Press Command T in Ferry to transform the selected clip. You see a before-and-after preview, then paste the result, copy it, or save it as a new clip. The original clip never changes. The ids work with the ferry transform command.

Case
TransformCLI idExample
UPPERCASEcase.upperferry → FERRY
lowercasecase.lowerFERRY → ferry
Title Casecase.titleq3 launch checklist → Q3 Launch Checklist
Sentence casecase.sentenceHELLO THERE → Hello there
camelCasecase.camelpaste queue → pasteQueue
PascalCasecase.pascalpaste queue → PasteQueue
snake_casecase.snakepaste queue → paste_queue
kebab-casecase.kebabpaste queue → paste-queue
CONSTANT_CASEcase.constantpaste queue → PASTE_QUEUE
Whitespace
TransformCLI idExample
Trimtext.trim“ hi ” → “hi”
Collapse Whitespacetext.collapseWhitespacea b → a b
Remove Line Breakstext.removeLineBreakstwo lines → one line
Remove Empty Linestext.removeEmptyLinesdrops blank lines
Lines
TransformCLI idExample
Sort A-Zlines.sortb, a → a, b
Sort Z-Alines.sortDescendinga, b → b, a
Unique Lineslines.uniquea, a, b → a, b
Reverse Lineslines.reversea, b → b, a
Number Lineslines.numbera → 1. a
Join Lineslines.joina / b → a, b
Wrap Lineslines.wrapwraps long lines at 80 characters
Quotes
TransformCLI idExample
Smart Quotesquotes.smart"hi" → “hi”
Straight Quotesquotes.straight“hi” → "hi"
Encode
TransformCLI idExample
URL Encodeencode.urla b → a%20b
URL Decodedecode.urla%20b → a b
Base64 Encodeencode.base64ferry → ZmVycnk=
Base64 Decodedecode.base64ZmVycnk= → ferry
HTML Encodeencode.html<b> → &lt;b&gt;
HTML Decodedecode.html&lt;b&gt; → <b>
Slugifytext.slugifyRelease Notes 1.0 → release-notes-1-0
Escape
TransformCLI idExample
Escape for JSONescape.jsonsay "hi" → say \"hi\"
Unescape JSONunescape.jsonsay \"hi\" → say "hi"
Escape for Shellescape.shellit's → 'it'\''s'
Escape for Regexescape.regexa.b → a\.b
Hash
TransformCLI idExample
MD5hash.md5ferry → 7e2f…
SHA-1hash.sha1ferry → 3f1a…
SHA-256hash.sha256ferry → 9c4b…
Links
TransformCLI idExample
Clean Tracking from Linkurl.cleanremoves utm_ and fbclid
Query String to Listurl.queryToList?a=1&b=2 → a = 1, b = 2
Markup
TransformCLI idExample
HTML to Markdownhtml.toMarkdown<b>hi</b> → **hi**
HTML to Texthtml.toText<b>hi</b> → hi
Markdown to HTMLmarkdown.toHTML**hi** → <strong>hi</strong>
Markdown to Textmarkdown.toText**hi** → hi
JSON
TransformCLI idExample
Prettify JSONjson.prettifyindents and line-breaks JSON
Minify JSONjson.minifyremoves whitespace
Validate JSONjson.validateshows the error position
Developer
TransformCLI idExample
Unix Time to Datetimestamp.toDate1763510400 → 19 Nov 2025
Date to Unix Timedate.toTimestamp19 Nov 2025 → 1763510400
Convert Colorcolor.convert#0A7A82 → rgb(10, 122, 130)
Decode JWTjwt.decodeshows header and claims
To Decimalnumber.toDecimal0xFF → 255
To Hexadecimalnumber.toHex255 → 0xFF
To Binarynumber.toBinary5 → 0b101
To Octalnumber.toOctal8 → 0o10

53 transforms in total.

Still need help? Email support@ferry.app.