Text Tools
Comprehensive text manipulation utilities including encoders, decoders, and analysis tools.
Overview
C# Dev Tools includes various text manipulation tools for common development tasks.
Encoders/Decoders
Base64 Tool
Encode and decode Base64 strings:
Features:
- Encode text to Base64
- Decode Base64 to text
- Handle binary data
- Copy results easily
Usage:
- Open "Base64 Tool" from Tools
- Paste text or Base64
- Click Encode or Decode
- Copy result
URL Encoder
Encode and decode URLs:
Features:
- Encode special characters
- Decode percent-encoded URLs
- Component encoding
- Full URL encoding
HTML Encoder
Encode and decode HTML entities:
Features:
- Encode special characters (
&
,<
,>
,"
,'
) - Decode HTML entities
- Named and numeric entities
- Preserve formatting
JSON Tools
JSON Formatter
Format and validate JSON:
Features:
- Pretty print JSON
- Minify JSON
- Validate syntax
- Error highlighting
Usage:
- Open "JSON Tool"
- Paste JSON
- Click Format or Minify
- Copy formatted result
JSON to C# Converter
Convert JSON to C# classes:
(See File Templates - JSON to C# for details)
JWT Decoder
Decode and inspect JWT tokens:
Features:
- Decode header
- Decode payload
- View claims
- Check expiration
- Validate signature (if key provided)
Usage:
- Open "JWT Tool"
- Paste JWT token
- View decoded sections
- Inspect claims
Text Analysis
Regex Tester
Test and debug regular expressions:
Features:
- Live pattern matching
- Match highlighting
- Capture groups
- Multiple matches
- Pattern library
Usage:
- Open "Regex Tester"
- Enter pattern
- Enter test text
- View matches
- Test and refine
Text Comparer
Compare two text blocks:
Features:
- Side-by-side comparison
- Highlight differences
- Line-by-line diff
- Unified diff view
- Export diff
Usage:
- Open "Text Comparer"
- Paste original text
- Paste modified text
- View differences
String Utilities
Case Converter
Convert between text cases:
- camelCase
- PascalCase
- snake_case
- kebab-case
- UPPER CASE
- lower case
Hash Generator
Generate hashes from text:
Supported algorithms:
- MD5
- SHA-1
- SHA-256
- SHA-512
Usage:
- Open "Hash Generator"
- Enter text
- Select algorithm
- Copy hash
Advanced Tools
Markdown Preview
Preview markdown formatting:
- Live preview
- GitHub-flavored markdown
- Syntax highlighting
- Export to HTML
XML Formatter
Format and validate XML:
- Pretty print
- Minify
- Validate syntax
- XPath testing
Accessing Tools
All text tools available in:
- Solution Explorer → Tools
- Command Palette → "Text Tools"
- Right-click editor → "Text Tools"
Common Features
Copy to Clipboard
All tools support:
- One-click copy
- Keyboard shortcuts
- Batch operations
- Format preservation
History
Tools maintain history:
- Recent inputs
- Frequently used
- Quick recall
- Clear history
Use Cases
API Development
- Encode/decode API payloads
- Test JWT tokens
- Format JSON responses
- Generate request hashes
Data Processing
- Convert text formats
- Parse encoded data
- Compare outputs
- Validate structures
Security
- Decode tokens
- Verify hashes
- Check encodings
- Analyze payloads
Debugging
- Format JSON logs
- Decode error messages
- Compare expected/actual
- Parse encoded data
Best Practices
- Validate before encoding
- Test regex patterns thoroughly
- Use appropriate hash algorithms
- Keep JWT tokens secure
- Verify decoded data
- Compare formatted output
Tips
Productivity
- Use keyboard shortcuts
- Save common patterns
- Bookmark frequently used tools
- Chain tool operations
Accuracy
- Double-check encodings
- Validate JSON before formatting
- Test regex with edge cases
- Verify hash algorithms
Troubleshooting
Tool Not Working
If tool doesn't work:
- Check input format
- Verify data validity
- Try different encoding
- Check for special characters
Invalid Output
If output is wrong:
- Verify input is correct
- Check encoding/decoding direction
- Look for escaped characters
- Try alternative method
Performance Issues
If tool is slow:
- Reduce input size
- Simplify regex patterns
- Clear history
- Restart tool