urlencode-tool

URL-encode or decode text for safe transmission in URLs and query strings, with support for form data, partial encoding, and batch file processing.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "urlencode-tool" with this command: npx skills add dinghaibin/urlencode-tool

URL Encode/Decode Tool — Percent-Encoding Utility

Encode and decode URL components per RFC 3986. Handles query strings, path segments, form bodies (application/x-www-form-urlencoded), and partial encoding where only unsafe characters are escaped.

Quick Start

# Encode a string for URL use
urlencode-tool --encode "hello world & more"

# Decode a percent-encoded string
urlencode-tool --decode "hello%20world%20%26%20more"

# Encode a full query string
urlencode-tool --encode "name=Alice & age=30" --query

Usage

urlencode-tool [COMMAND] [TEXT] [OPTIONS]

Commands:
  --encode TEXT   Percent-encode the input string
  --decode TEXT   Decode percent-encoded input

Options:
  --query         Encode as form query (spaces → +)
  --path-safe     Only encode unsafe chars for path segment
  --component     Encode entire URI component (default, full RFC 3986)
  --charset UTF-8 Character encoding (default: UTF-8)
  --batch FILE    Encode/decode lines from a file
  --json          Output as JSON

Examples

# Basic encoding
urlencode-tool --encode "user input with spaces & symbols"

# Decode back
urlencode-tool --decode "user%20input%20with%20spaces%20%26%20symbols"

# Form-encoded query string (spaces as +)
urlencode-tool --encode "name=Alice Smith&city=New York" --query

# Path-segment safe (preserves /)
urlencode-tool --encode "dir/sub dir/file name.txt" --path-safe

# Batch process a file of URLs
urlencode-tool --encode --batch urls.txt --json

Features

  • Encode & decode full RFC 3986 percent-encoding
  • 3 encoding modes: component, query (form), path-safe
  • UTF-8 encoding standard (configurable charset)
  • Batch processing from file input
  • JSON output for script pipelines
  • Round-trip safety: decode(encode(x)) === x for valid Unicode
  • Unicode safe: handles CJK, emoji, and multi-byte characters

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Qclaw Env

OpenClaw skill 全链路环境诊断与安装工具。安装任何 CLI、命令行工具、包管理器、运行时环境时必须使用此 skill。使用场景包括但不限于:(1) 安装或配置任何命令行工具或 CLI(如 gh、ffmpeg、whisper 等),(2) 安装 OpenClaw skill 所需的依赖环境(包括底层运...

Registry SourceRecently Updated
Coding

Kc Gui

Use the bundled kc.exe Windows agent to perform GUI-based desktop automation tasks that cannot be handled through CLI or scripting alone. Use this skill when...

Registry SourceRecently Updated
Coding

Deep Research

use for adaptive deep research, broad but accurate information gathering, literature review, github and project due diligence, source graph investigation, ci...

Registry SourceRecently Updated
Coding

AutoSkill Local Skill Manager

Manage local Agent Skill files as an installable skill manager. Proactively and periodically detect reusable skill material during or after meaningful sessio...

Registry SourceRecently Updated