Free data and code tools
Format, convert, encode, decode and check the data developers and students handle every day, without uploading anything. JSON, CSV and XML files, Base64, URL codes, tokens, hashes, UUIDs, number bases and timestamps are all worked out on your own device, and every tool was checked against a second, independent program.
- JSON FormatterPretty-print, minify and check JSON, with the line and column of any mistake.
- XML to JSONTurn XML files into JSON by clear rules, with attributes, repeated tags and Hindi kept.
- JSON to XMLTurn JSON into well-formed XML, with your own root element and safe tag names.
- CSV to JSONTurn CSV files from Excel or Google Sheets into JSON, with quoted commas and Hindi read right.
- JSON to CSVTurn JSON into a CSV that opens in Excel, with nested fields as columns.
- Base64 Encode and DecodeEncode text or a file to Base64, or decode Base64 to text or a file, standard or URL-safe.
- HTML Entities EncoderEncode text for HTML (< to <) or decode HTML entities back to text.
- Text to BinaryTurn text into binary or hex bytes (UTF-8), or binary and hex back into text.
- JSON EscapeEscape text so it can go inside a JSON string, or unescape a JSON string back to text.
- URL Encode and DecodeWrite text with percent codes like %20, or read them back, for one value or a whole address.
- JWT DecoderDecode a JWT to read its header, payload and dates. It only decodes: it does not check the signature.
- Hash GeneratorMake MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of text or a file, and compare with a published hash.
- UUID GeneratorMake random version 4 UUIDs (GUIDs), one or up to 1,000 at once, in capital letters, without hyphens or with braces.
- Unix Timestamp ConverterConvert a Unix timestamp to a date and time in UTC or any time zone, and a date and time back to a timestamp.
- Hex to Decimal ConverterConvert a number between hexadecimal, decimal, binary and octal, or any base from 2 to 36, with negative numbers.
Which one do I need?
| You have | Use |
|---|---|
| JSON to read, tidy, minify or check | JSON Formatter |
| JSON to open in Excel or Google Sheets | JSON to CSV |
| A CSV, or a sheet saved as CSV, that an app needs as JSON | CSV to JSON |
| An XML file, feed or export that a newer app needs as JSON | XML to JSON |
| JSON that a portal or an older system wants as XML | JSON to XML |
| A Base64 text, or a file to write as Base64 | Base64 Encode and Decode |
| A link full of %20 and % codes, or a value to put in a link | URL Encode and Decode |
| A token that starts with eyJ | JWT Decoder |
| A file to check, or a text to fingerprint | Hash Generator |
| A number like 1700000000 in a log or an API reply | Unix Timestamp Converter |
| A need for unique IDs | UUID Generator |
| A number in hex, binary, octal or another base | Hex to Decimal Converter |
| Text with < or & to show in HTML, or entities to read | HTML Entities Encoder |
| Text to put in a JSON string, or a string full of \n to read | JSON Escape |
| The bytes of a text, in binary or hex | Text to Binary |
Checked against a second program
A tool that turns one kind of data into another is only useful if it is exactly right, so each of these was checked against an independent program that shares none of its code. Base64 gave the same result as Python's base64 module in all 63,000 cases, messy copies with spaces, line breaks and missing = signs included. URL Encode matched JavaScript's own encodeURIComponent and encodeURI in 80,000 results. The Hex to Decimal Converter matched Python's integers in 147,952 results, two's complement patterns in 8, 16, 32 and 64 bits among them. The Hash Generator's MD5, written for this site from RFC 1321, passed the RFC's own test suite and matched Python's hashlib on 20,000 inputs in all five hashes. The Unix Timestamp Converter matched Python's date and time zone libraries in 21,000 results, including 1,482 times that never happened and 1,364 that happened twice around daylight saving changes. The five JSON, CSV and XML converters were given 239 test files, with nested data, Hindi and emoji, every CSV quoting case and files with mistakes among them, and every result agreed with Python's own json, csv and XML readers, the refusals of the broken files included.
JSON, CSV and XML files up to 200 MB
The converters and the JSON Formatter read files of up to 200 MB, in a background worker so the page keeps answering while they work: in our tests on a laptop, a 50 MB file took between 2.9 and 4.0 seconds, and the page was never kept waiting for more than 70 milliseconds. Each one follows fixed rules printed on its page, so the same file always gives the same result, and none of them guesses at a broken file: the mistake is named with its line and column. Numbers are kept exactly as written, so a long ID or a price like 180.00 never loses a digit, and values that look like numbers stay text unless you ask, so PIN codes and phone numbers keep their zeros.
Tools that work together
These jobs often come one after another. A JWT's exp and iat are Unix timestamps: the JWT Decoder shows them as dates already, and the Unix Timestamp Converter works out any other moment. Each part of a JWT is Base64URL, so Base64 Encode and Decode reads a single part too. A value in a link may be URL-encoded and then Base64-encoded, so decode it with URL Encode first and Base64 second; the Base64 page even hints at this when it meets a % sign. And when you need to prove that a file you sent arrived unchanged, send its SHA-256 from the Hash Generator along with it.
Exact, however long
Spreadsheets keep about 15 significant digits, and many programs stop at the 64-bit limit. These tools work with exact whole numbers instead: the Hex to Decimal Converter writes 2 to the 64th, 18,446,744,073,709,551,616, as 10000000000000000 in hexadecimal and handles 50,000 digits at a time, and the Unix Timestamp Converter keeps a timestamp to the nanosecond and doesn't wrap at the year 2038, where a signed 32-bit count of seconds ends.
Encoding is not hiding
Base64 and URL codes change how data is written so it can pass through systems built for text; anyone can read them back in a second. Decoding a JWT is only reading it: checking that it is genuine needs the key, which the decoder neither has nor asks for, so it never calls a token valid or expired. MD5 and SHA-1 are fine for catching a damaged or mixed-up copy, but a person who sets out to fake a file can beat them, so use SHA-256 when it matters. To keep a document private, lock it with Protect PDF.
What you paste stays on your device
Tokens, keys, log lines and work data are exactly what you shouldn't paste into a site that sends them to a server. Every tool here works inside your browser and never uploads what you type or open, and once a page has loaded it keeps working with the internet switched off: in our tests each one gave its result within 0.3 seconds with the network off.
Questions
How do I format and check JSON?
Paste it into JSON Formatter and press Format JSON. Valid JSON is laid out one item a line, or minified; a mistake is named with its line and column and a ^ under the place.
How do I open JSON in Excel?
Convert it with JSON to CSV, with UTF-8 for Excel on, and double-click the .csv. Nested names become columns like address.city, and Hindi stays readable.
How do I turn a CSV or an Excel sheet into JSON?
Save the sheet as CSV UTF-8, then drop it on CSV to JSON: each row becomes an object named by the header row, and values stay text unless you ask for numbers.
How do I convert XML to JSON, or back?
XML to JSON turns attributes into @ names and repeated tags into lists, by rules shown on the page; JSON to XML follows the same rules in reverse.
How do I decode a Base64 text?
Open Base64 Encode and Decode, choose Decode and paste the text. Quotes, a data: start and line breaks are left out for you, and a decoded picture or PDF is saved as a real file.
How do I read what is inside a JWT?
Paste it into JWT Decoder. It shows the header and the payload as JSON and turns exp and iat into dates. It only decodes: it never checks the signature, so it can't say a token is genuine.
How do I check that a download isn't damaged?
Choose the file in Hash Generator and paste the hash the website published into its compare box. A match means the file is complete and unchanged; prefer SHA-256 when several are offered.
How do I turn a Unix timestamp into a date?
Paste it into Unix Timestamp Converter. 1700000000 is Tuesday, 14 November 2023, 22:13:20 UTC, which was 03:43:20 the next morning in India. Auto tells seconds from milliseconds by size.
How do I make a UUID?
UUID Generator makes version 4 UUIDs, up to 1,000 at once, from your browser's secure random numbers, in small or capital letters, with or without hyphens and braces.
How do I convert hex to decimal?
Type the number in the hexadecimal box of Hex to Decimal Converter: the decimal, binary and octal boxes fill in at once, exactly, even for 50,000 digits. FF is 255, or -1 as a signed 8-bit number.
How do I put Hindi words or an & in a link?
Encode the value with URL Encode and Decode using Everything: Tom & Jerry becomes Tom%20%26%20Jerry, and चाय becomes %E0%A4%9A%E0%A4%BE%E0%A4%AF.
Is Base64 or a hash a way to hide a password?
No. Anyone can decode Base64 in a second, and MD5 and SHA-1 are for checking that copies match, not for security. To lock a PDF, use Protect PDF; for passwords, use a password manager.
Is what I paste uploaded?
No. Every tool here works inside your browser and never uploads your text, tokens or files, and once a page has loaded it keeps working with the internet switched off.
Are these tools free?
Yes, every one, with no sign-up and no limit set by us. Ads from Google help pay for the site.