Text formats
Text changes shape depending on where it lives: in a URL, inside HTML, in a Markdown file or on a different operating system. These articles explain each form and when to convert between them.
Articles
- URL Encoding (Percent-Encoding) Explained
Why URLs need encoding, which characters are safe, how UTF-8 bytes become %XX sequences, and the difference between encodeURI, encodeURIComponent and form encoding.
- HTML Entities Explained
What HTML character references are, which characters must be escaped, named versus numeric references, and when you still need entities with UTF-8.
- Markdown Basics
The essential Markdown syntax for headings, emphasis, lists, links, images, code and tables, plus the differences between Markdown flavors.
- Line Endings Explained: CRLF, LF and CR
Why Windows, macOS and Linux use different line-break characters, the problems mixed line endings cause, and how tools handle them.
- Text Cleaning Methods
The common operations for cleaning text data — trimming, whitespace normalization, deduplication, case folding, Unicode normalization — and the order to apply them.
- JSON Syntax Explained: Rules and Common Errors
The complete JSON syntax in one page, the mistakes that make JSON invalid, and why large numbers can change when JSON is parsed in JavaScript.
- Base64 Encoding Explained
How Base64 turns bytes into text, why it makes data about a third larger, what base64url is, and why Base64 is not encryption.
Tools for this topic
- URL Encoder
Percent-encodes text for safe use in URLs.
- URL Decoder
Turns %20-style encoded text back into readable text.
- Slug Generator
Turns a title into a clean, lowercase URL slug.
- HTML Entity Encoder
Escapes & < > and quotes for safe HTML.
- HTML Entity Decoder
Turns &, é and other entities back into characters.
- HTML to Text
Strips HTML tags while keeping paragraphs and lists.
- Text to HTML
Wraps plain text in <p> and <br> with safe escaping.
- Markdown Previewer
Live Markdown preview plus the generated HTML.
- Line Counter
Total, non-empty, empty and whitespace-only lines.
- Remove Line Breaks
Joins broken lines, optionally keeping paragraphs.
- Remove Empty Lines
Deletes blank and whitespace-only lines.
- Remove Extra Spaces
Collapses runs of spaces and tabs into single spaces.
- Trim Lines
Strips whitespace at the start and/or end of every line.
- Remove Duplicate Lines
Keeps the first copy of each line and removes the repeats.
- Remove Punctuation
Strips punctuation, optionally keeping apostrophes and hyphens.
- Lowercase Converter
Converts every letter to lowercase.
- JSON Formatter & Validator
Beautifies or minifies JSON and pinpoints syntax errors.
- Base64 Decoder
Turns Base64 back into text, standard or URL-safe.
- Base64 Encoder
Encodes text as Base64, with URL-safe and wrapped options.