# Transcode

> Free online developer tools to convert, format and encode text, JSON, YAML, CSV, XML, HTML, CSS, SQL, colors, hashes, timestamps and more. No sign-up required.

Transcode converts text between formats. Every converter on the website is also available as a free HTTP API that needs no authentication. Nothing is stored.

## API

Base URL: https://transcode.prvnbist.com

Each converter lives at `/api/{tool}/{translator}`. `GET https://transcode.prvnbist.com/api` returns the full machine-readable list of endpoints.

```bash
# JSON in, JSON out
curl -X POST https://transcode.prvnbist.com/api/json/yaml \
  -H 'content-type: application/json' -d '{"input":"{\"a\":1}"}'
# => { "tool": "json", "translator": "yaml", "output": "a: 1\n" }

# Raw text in, plain text out
curl -X POST https://transcode.prvnbist.com/api/text/camel-case \
  -H 'accept: text/plain' -d 'hello world'

# Short inputs via GET
curl 'https://transcode.prvnbist.com/api/encoding/base64-encode?input=hello&format=text'
```

- Input is capped at 100 KB. Rate limit: 60 requests/minute per IP (429 when exceeded). CORS is open.
- Status codes: `200` ok, `400` bad request, `404` unknown converter, `413` input too large, `422` the converter rejected the input (`error` holds the message).
- A non-fatal `warning` field may accompany a `200` response.

## MCP

A remote MCP server (Streamable HTTP) is available at `https://transcode.prvnbist.com/mcp` with two tools: `list_converters` and `convert`.

Human-readable docs: https://transcode.prvnbist.com/docs

## Converters

### Text

Change the case and structure of text in one click. Convert to camelCase, snake_case, kebab-case and more, or sort, dedupe and trim lines.

- **Camel Case**: `POST /api/text/camel-case` ([page](https://transcode.prvnbist.com/text/camel-case))
- **Kebab Case**: `POST /api/text/kebab-case` ([page](https://transcode.prvnbist.com/text/kebab-case))
- **Snake Case**: `POST /api/text/snake-case` ([page](https://transcode.prvnbist.com/text/snake-case))
- **Start Case**: `POST /api/text/start-case` ([page](https://transcode.prvnbist.com/text/start-case))
- **Lower Case**: `POST /api/text/lower-case` ([page](https://transcode.prvnbist.com/text/lower-case))
- **Upper Case**: `POST /api/text/upper-case` ([page](https://transcode.prvnbist.com/text/upper-case))
- **Capitalize**: `POST /api/text/capitalize` ([page](https://transcode.prvnbist.com/text/capitalize))
- **Pascal Case**: `POST /api/text/pascal-case` ([page](https://transcode.prvnbist.com/text/pascal-case))
- **Constant Case**: `POST /api/text/constant-case` ([page](https://transcode.prvnbist.com/text/constant-case))
- **Dot Case**: `POST /api/text/dot-case` ([page](https://transcode.prvnbist.com/text/dot-case))
- **Slugify**: `POST /api/text/slugify` ([page](https://transcode.prvnbist.com/text/slugify))
- **Reverse**: `POST /api/text/reverse` ([page](https://transcode.prvnbist.com/text/reverse))
- **Sort Lines**: `POST /api/text/sort-lines` ([page](https://transcode.prvnbist.com/text/sort-lines))
- **Unique Lines**: `POST /api/text/unique-lines` ([page](https://transcode.prvnbist.com/text/unique-lines))
- **Trim Lines**: `POST /api/text/trim-lines` ([page](https://transcode.prvnbist.com/text/trim-lines))
- **Stats**: `POST /api/text/stats` ([page](https://transcode.prvnbist.com/text/stats))

### URL

Encode and decode URLs, break a URL into its parts, or pull every link out of a block of text.

- **URL Encode**: `POST /api/url/encode` ([page](https://transcode.prvnbist.com/url/encode))
- **URL Decode**: `POST /api/url/decode` ([page](https://transcode.prvnbist.com/url/decode))
- **URL Parse**: `POST /api/url/parse` ([page](https://transcode.prvnbist.com/url/parse))
- **URL Extract Links**: `POST /api/url/extract-links` ([page](https://transcode.prvnbist.com/url/extract-links))

### HTML

Convert HTML to Pug templates, JSX for React, or a JSON syntax tree.

- **HTML to Pug**: `POST /api/html/pug` ([page](https://transcode.prvnbist.com/html/pug))
- **HTML to JSX**: `POST /api/html/jsx` ([page](https://transcode.prvnbist.com/html/jsx))
- **HTML to AST**: `POST /api/html/ast` ([page](https://transcode.prvnbist.com/html/ast))

### CSS

Turn CSS rules into a JavaScript object you can use in CSS-in-JS.

- **CSS to Javascript**: `POST /api/css/javascript` ([page](https://transcode.prvnbist.com/css/javascript))

### JSON

Format and minify JSON, or convert it to YAML, CSV, XML, TypeScript, Zod, JSON Schema, GraphQL, SQL and more.

- **JSON Format**: `POST /api/json/format` ([page](https://transcode.prvnbist.com/json/format))
- **JSON Minify**: `POST /api/json/minify` ([page](https://transcode.prvnbist.com/json/minify))
- **JSON to CSV**: `POST /api/json/csv` ([page](https://transcode.prvnbist.com/json/csv))
- **JSON to XML**: `POST /api/json/xml` ([page](https://transcode.prvnbist.com/json/xml))
- **JSON to YAML**: `POST /api/json/yaml` ([page](https://transcode.prvnbist.com/json/yaml))
- **JSON to Mongoose Schema**: `POST /api/json/mongoose` ([page](https://transcode.prvnbist.com/json/mongoose))
- **JSON to MySQL**: `POST /api/json/mysql` ([page](https://transcode.prvnbist.com/json/mysql))
- **JSON to JSON Schema**: `POST /api/json/json-schema` ([page](https://transcode.prvnbist.com/json/json-schema))
- **JSON to Big Query**: `POST /api/json/big-query` ([page](https://transcode.prvnbist.com/json/big-query))
- **JSON to GraphQL**: `POST /api/json/graphql` ([page](https://transcode.prvnbist.com/json/graphql))
- **JSON to TypeScript**: `POST /api/json/typescript` ([page](https://transcode.prvnbist.com/json/typescript))
- **JSON to Zod Schema**: `POST /api/json/zod` ([page](https://transcode.prvnbist.com/json/zod))

### YAML

Convert YAML documents to JSON.

- **YAML to JSON**: `POST /api/yaml/json` ([page](https://transcode.prvnbist.com/yaml/json))

### CSV

Convert CSV rows into a JSON array of objects.

- **CSV to JSON**: `POST /api/csv/json` ([page](https://transcode.prvnbist.com/csv/json))

### XML

Format XML for readability or convert it to JSON.

- **XML to JSON**: `POST /api/xml/json` ([page](https://transcode.prvnbist.com/xml/json))
- **XML Format**: `POST /api/xml/format` ([page](https://transcode.prvnbist.com/xml/format))

### SQL

Format SQL queries with consistent indentation, or minify them.

- **SQL Format**: `POST /api/sql/format` ([page](https://transcode.prvnbist.com/sql/format))
- **SQL Minify**: `POST /api/sql/minify` ([page](https://transcode.prvnbist.com/sql/minify))

### Colors

Convert colors between HEX, RGB, HSL, HSV and CMYK, or look up a CSS color name.

- **Hex to RGB**: `POST /api/colors/hex-to-rgb` ([page](https://transcode.prvnbist.com/colors/hex-to-rgb))
- **Hex to CMYK**: `POST /api/colors/hex-to-cmyk` ([page](https://transcode.prvnbist.com/colors/hex-to-cmyk))
- **Hex to HSL**: `POST /api/colors/hex-to-hsl` ([page](https://transcode.prvnbist.com/colors/hex-to-hsl))
- **Hex to HSV**: `POST /api/colors/hex-to-hsv` ([page](https://transcode.prvnbist.com/colors/hex-to-hsv))
- **RGB to Hex**: `POST /api/colors/rgb-to-hex` ([page](https://transcode.prvnbist.com/colors/rgb-to-hex))
- **RGB to CMYK**: `POST /api/colors/rgb-to-cmyk` ([page](https://transcode.prvnbist.com/colors/rgb-to-cmyk))
- **RGB to HSL**: `POST /api/colors/rgb-to-hsl` ([page](https://transcode.prvnbist.com/colors/rgb-to-hsl))
- **RGB to HSV**: `POST /api/colors/rgb-to-hsv` ([page](https://transcode.prvnbist.com/colors/rgb-to-hsv))
- **Keyword to Hex**: `POST /api/colors/keyword-to-hex` ([page](https://transcode.prvnbist.com/colors/keyword-to-hex))
- **Keyword to RGB**: `POST /api/colors/keyword-to-rgb` ([page](https://transcode.prvnbist.com/colors/keyword-to-rgb))

### Morse

Translate text to Morse code and Morse code back to text.

- **Text to Morse**: `POST /api/morse/text-to-morse` ([page](https://transcode.prvnbist.com/morse/text-to-morse))
- **Morse to Text**: `POST /api/morse/morse-to-text` ([page](https://transcode.prvnbist.com/morse/morse-to-text))

### Encoding

Encode and decode Base64, hex, binary, HTML entities and Unicode escapes, or apply ROT13.

- **Base64 Encode**: `POST /api/encoding/base64-encode` ([page](https://transcode.prvnbist.com/encoding/base64-encode))
- **Base64 Decode**: `POST /api/encoding/base64-decode` ([page](https://transcode.prvnbist.com/encoding/base64-decode))
- **Hex Encode**: `POST /api/encoding/hex-encode` ([page](https://transcode.prvnbist.com/encoding/hex-encode))
- **Hex Decode**: `POST /api/encoding/hex-decode` ([page](https://transcode.prvnbist.com/encoding/hex-decode))
- **Binary Encode**: `POST /api/encoding/binary-encode` ([page](https://transcode.prvnbist.com/encoding/binary-encode))
- **Binary Decode**: `POST /api/encoding/binary-decode` ([page](https://transcode.prvnbist.com/encoding/binary-decode))
- **HTML Escape**: `POST /api/encoding/html-escape` ([page](https://transcode.prvnbist.com/encoding/html-escape))
- **HTML Unescape**: `POST /api/encoding/html-unescape` ([page](https://transcode.prvnbist.com/encoding/html-unescape))
- **Unicode Escape**: `POST /api/encoding/unicode-escape` ([page](https://transcode.prvnbist.com/encoding/unicode-escape))
- **Unicode Unescape**: `POST /api/encoding/unicode-unescape` ([page](https://transcode.prvnbist.com/encoding/unicode-unescape))
- **ROT13**: `POST /api/encoding/rot13` ([page](https://transcode.prvnbist.com/encoding/rot13))

### Hash

Generate MD5, SHA-1, SHA-256 and SHA-512 hashes of any text.

- **MD5 Hash Generator**: `POST /api/hash/md5` ([page](https://transcode.prvnbist.com/hash/md5))
- **SHA-1 Hash Generator**: `POST /api/hash/sha1` ([page](https://transcode.prvnbist.com/hash/sha1))
- **SHA-256 Hash Generator**: `POST /api/hash/sha256` ([page](https://transcode.prvnbist.com/hash/sha256))
- **SHA-512 Hash Generator**: `POST /api/hash/sha512` ([page](https://transcode.prvnbist.com/hash/sha512))

### JWT

Decode a JSON Web Token to read its header and payload.

- **JWT Decode**: `POST /api/jwt/decode` ([page](https://transcode.prvnbist.com/jwt/decode))

### Timestamp

Convert Unix timestamps to readable dates and dates back to Unix time.

- **Unix to Date**: `POST /api/timestamp/from-unix` ([page](https://transcode.prvnbist.com/timestamp/from-unix))
- **Date to Unix**: `POST /api/timestamp/to-unix` ([page](https://transcode.prvnbist.com/timestamp/to-unix))

### Number

Convert numbers between decimal, binary, octal and hexadecimal bases.

- **Decimal to Binary**: `POST /api/number/decimal-to-binary` ([page](https://transcode.prvnbist.com/number/decimal-to-binary))
- **Decimal to Octal**: `POST /api/number/decimal-to-octal` ([page](https://transcode.prvnbist.com/number/decimal-to-octal))
- **Decimal to Hex**: `POST /api/number/decimal-to-hex` ([page](https://transcode.prvnbist.com/number/decimal-to-hex))
- **Binary to Decimal**: `POST /api/number/binary-to-decimal` ([page](https://transcode.prvnbist.com/number/binary-to-decimal))
- **Octal to Decimal**: `POST /api/number/octal-to-decimal` ([page](https://transcode.prvnbist.com/number/octal-to-decimal))
- **Hex to Decimal**: `POST /api/number/hex-to-decimal` ([page](https://transcode.prvnbist.com/number/hex-to-decimal))
- **Bytes to Human**: `POST /api/number/bytes-to-human` ([page](https://transcode.prvnbist.com/number/bytes-to-human))

### Cron

Turn a cron expression into a plain English schedule.

- **Cron Describe**: `POST /api/cron/describe` ([page](https://transcode.prvnbist.com/cron/describe))

### Generate

Generate random UUIDs and placeholder Lorem Ipsum text.

- **Generate UUID (count)**: `POST /api/generate/uuid` ([page](https://transcode.prvnbist.com/generate/uuid))
- **Generate Lorem Ipsum (paragraphs)**: `POST /api/generate/lorem` ([page](https://transcode.prvnbist.com/generate/lorem))
