Special Paste Formats
Special paste formats are one of DPaste's powerful features, providing 50+ format conversion capabilities. Whether you need to process JSON, convert naming styles, handle URLs, convert number bases, or format SQL, you can complete it quickly.
Feature Overview
Core features of special paste formats:
- 50+ Conversion Formats: Covering JSON, text, naming styles, URLs, numbers, timestamps, SQL, and many other types
- Smart Recognition: Automatically recommend suitable conversion formats based on content type
- Flexible Configuration: Can enable or disable specific formats, customize menu display
- Quick Operations: Support right-click menu for quick access
Main Format Categories
JSON Processing
- JSON Formatting: Format compressed JSON into readable multi-line format
- JSON Compression: Compress formatted JSON into a single line
- JSON Compression and Escape: Compress JSON and escape special characters
- JSON Unescape: Remove escape characters from JSON
- JSON Keys: Extract all key names from JSON
- JSON Array: Convert content to JSON array format
- String JSON Array: Convert content to string-format JSON array
Text Conversion
- URL Encoding: Encode text to URL-safe format
- URL Decoding: Decode URL-encoded text
- Extract URL Parameters as JSON: Extract parameters from URL and convert to JSON format
Naming Style Conversion
Support conversion between multiple naming styles:
- camelCase: Camel case naming (e.g., userName)
- snake_case: Snake case naming (e.g., user_name)
- PascalCase: Pascal case naming (e.g., UserName)
- kebab-case: Kebab case naming (e.g., user-name)
- And other common naming styles
Number Base Conversion
- Convert to Hexadecimal: Convert numbers to hexadecimal
- Convert to Octal: Convert numbers to octal
- Convert to Binary: Convert numbers to binary
- Hexadecimal to Decimal: Convert hexadecimal numbers to decimal
- Binary to Decimal: Convert binary numbers to decimal
Timestamp Conversion
- Timestamp to Date Time: Convert timestamp to readable date-time format
- Date Time to Timestamp: Convert date-time to timestamp (seconds or milliseconds)
SQL Processing
- SQL Formatting: Format compressed SQL into readable multi-line format
- SQL Compression: Compress formatted SQL into a single line
Image Format Conversion
- JPEG: Convert images to JPEG format
- PNG: Convert images to PNG format
Usage
Basic Operations
- Open DPaste clipboard history (
⌘ + Shift + V) - Find the record you need to convert
- Right-click the record
- Select "Paste as..." or "Special Paste"
- Select the desired format from the submenu
- Content will be pasted in the converted format to the target location
- Copy a compressed JSON:
{"name":"DPaste","version":"1.0","features":["clipboard","ocr"]} - Find the record in clipboard history
- Right-click and select "Paste as..." → "JSON Formatting"
- After pasting, you'll get formatted JSON:
{
"name": "DPaste",
"version": "1.0",
"features": [
"clipboard",
"ocr"
]
}
Configuring Special Paste Formats
You can manage special paste formats in settings:
- Open DPaste settings
- Go to "Special Paste" settings
- View all available format lists
- Enable or disable specific formats
- Adjust format display order
- Enable/Disable Formats: Control which formats appear in the menu
- Sorting: Adjust the display order of formats in the menu
- Grouping: Formats are automatically grouped by category
Use Cases
JSON Data Processing
JSON from APIs is usually in compressed format and hard to read. Using "JSON Formatting" can quickly beautify it:
Input: {"name":"DPaste","version":"1.0"}
Output:
{
"name": "DPaste",
"version": "1.0"
}
Need to quickly get all key names from a JSON object:
Input: {"name":"DPaste","version":"1.0","features":["clipboard"]}
Output: name, version, features
Naming Style Conversion
Input: user_name
Convert to camelCase: userName
Convert to PascalCase: UserName
Convert to kebab-case: user-name
URL Processing
Need to encode text containing special characters to URL-safe format:
Input: Hello World!
Output: Hello%20World%21
Extract parameters from URL and convert to JSON:
Input: https://example.com?name=DPaste&version=1.0
Output: {"name":"DPaste","version":"1.0"}
Number Base Conversion
Input: 255
Convert to hexadecimal: FF
Convert to octal: 377
Convert to binary: 11111111
SQL Formatting
Input: SELECT * FROM users WHERE id=1 AND status='active'
Output:
SELECT *
FROM users
WHERE id = 1
AND status = 'active'
Advanced Features
Smart Format Recommendation
DPaste intelligently recommends suitable conversion formats based on content type:
- JSON Content: Recommend JSON-related formats
- URL Content: Recommend URL encoding/decoding, parameter extraction
- Number Content: Recommend base conversion
- SQL Content: Recommend SQL formatting/compression
- Code Variables: Recommend naming style conversion
Batch Processing
With continuous paste mode, you can batch process multiple contents:
- Copy multiple contents that need conversion
- Enter continuous paste mode (
Option + V) - Apply the same format conversion to each content
- Quickly complete batch processing
Notes
Format Compatibility
Some format conversions may not apply to all content types:
- JSON Formats: Only applicable to valid JSON content
- SQL Formats: Only applicable to valid SQL statements
- Number Conversion: Only applicable to number content
If content doesn't meet format requirements, conversion may fail or produce unexpected results.
Data Loss
Some conversions may cause data loss:
- JSON Keys Extraction: Only keeps key names, loses values
- Compressed Formats: Loses all formatting and whitespace characters
Please confirm it meets your needs before conversion.
Performance Considerations
Some complex conversions (such as large JSON formatting) may take some time, please be patient.